From cd627963e6ed65bf6861d8200cf2e0cd8add7ad7 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 8 Aug 2012 15:19:21 -0500 Subject: [PATCH] fixed issue 578, thanks Thomas Dallagnese --- VERSION | 2 +- gluon/tools.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index e2a9c253..a6f89ae0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-08 15:17:55) dev +Version 2.00.0 (2012-08-08 15:19:18) dev diff --git a/gluon/tools.py b/gluon/tools.py index d604665b..534e6e7e 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1631,8 +1631,8 @@ class Auth(object): if user: update_keys = dict(registration_id=keys['registration_id']) for key in update_fields: - if key in vars: - update_keys[key] = vars[key] + if key in keys: + update_keys[key] = keys[key] user.update_record(**update_keys) elif checks: if not 'first_name' in keys and 'first_name' in table_user.fields: