Merge pull request #9340 from jigartarpara/patch-1

fix: Create User Email feature in User doctype
This commit is contained in:
mergify[bot] 2020-01-23 05:36:12 +00:00 committed by GitHub
commit 69b76bfbbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ frappe.ui.form.on('User', {
email: frm.doc.email
},
callback: function(r) {
if (r.message == undefined) {
if (!Array.isArray(r.message)) {
frappe.route_options = {
"email_id": frm.doc.email,
"awaiting_password": 1,