fixed problem with update_record and ignore_common_filters, issue 892, thanks spiffytech
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-07-15 18:06:45) dev
|
||||
Version 2.00.0 (2012-07-15 18:11:44) dev
|
||||
|
||||
@@ -8414,7 +8414,7 @@ def update_record(pack, a=None):
|
||||
(colset, table, id) = pack
|
||||
b = a or dict(colset)
|
||||
c = dict([(k,v) for (k,v) in b.items() if k in table.fields and table[k].type!='id'])
|
||||
table._db(table._id==id).update(**c)
|
||||
table._db(table._id==id,ignore_common_filters=True).update(**c)
|
||||
for (k, v) in c.items():
|
||||
colset[k] = v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user