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