diff --git a/core/doctype/profile/profile.py b/core/doctype/profile/profile.py index fe6e1fca46..e048be9331 100644 --- a/core/doctype/profile/profile.py +++ b/core/doctype/profile/profile.py @@ -236,7 +236,8 @@ Thank you,
where name=%s""", (newdn, newdn)) # update __Auth table - webnotes.conn.sql("""update __Auth set user=%s where user=%s""", (newdn, olddn)) + if not merge: + webnotes.conn.sql("""update __Auth set user=%s where user=%s""", (newdn, olddn)) def validate_rename(self, newdn, olddn): # do not allow renaming administrator and guest