From f308343fb0689cbd5baec6aab97495adcb33a64f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 15 Jul 2012 18:11:47 -0500 Subject: [PATCH] fixed problem with update_record and ignore_common_filters, issue 892, thanks spiffytech --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 79aaa7c6..b339474d 100644 --- a/VERSION +++ b/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 diff --git a/gluon/dal.py b/gluon/dal.py index e0ff9295..5e25d232 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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