From 2d300df2900a4161ef3466d78e7caf47b663e0f6 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 7 Jun 2012 17:23:13 +0530 Subject: [PATCH] fix in profile rename tool --- py/core/doctype/profile/profile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py/core/doctype/profile/profile.py b/py/core/doctype/profile/profile.py index e5edeea545..123027fa8a 100644 --- a/py/core/doctype/profile/profile.py +++ b/py/core/doctype/profile/profile.py @@ -72,4 +72,7 @@ class DocType: webnotes.conn.sql("""\ update `%s` set `%s`=%s where `%s`=%s""" % \ - (tab[0], field, '%s', field, '%s'), (newdn, olddn)) \ No newline at end of file + (tab[0], field, '%s', field, '%s'), (newdn, olddn)) + webnotes.conn.sql("""\ + update `tabProfile` set email=%s + where name=%s""", (newdn, newdn)) \ No newline at end of file