From 87248a1a11c502bd8ec2fa7115f9034c7b124bd5 Mon Sep 17 00:00:00 2001 From: Jigar Tarpara Date: Wed, 22 Jan 2020 11:37:03 +0530 Subject: [PATCH 1/2] Fix: Create User Email> Email Account (In User Doctype) Create User Email not working properly becuase of response empty --- frappe/core/doctype/user/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/user/user.js b/frappe/core/doctype/user/user.js index 82ecdbddca..950b8b219c 100644 --- a/frappe/core/doctype/user/user.js +++ b/frappe/core/doctype/user/user.js @@ -168,7 +168,7 @@ frappe.ui.form.on('User', { email: frm.doc.email }, callback: function(r) { - if (r.message == undefined) { + if (r.message == undefined || r.message == "") { frappe.route_options = { "email_id": frm.doc.email, "awaiting_password": 1, From b1169c0b319a8a302f0d0f271198227e590f6411 Mon Sep 17 00:00:00 2001 From: Jigar Tarpara Date: Wed, 22 Jan 2020 19:40:24 +0530 Subject: [PATCH 2/2] Update frappe/core/doctype/user/user.js Co-Authored-By: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> --- frappe/core/doctype/user/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/user/user.js b/frappe/core/doctype/user/user.js index 950b8b219c..c4873ee40e 100644 --- a/frappe/core/doctype/user/user.js +++ b/frappe/core/doctype/user/user.js @@ -168,7 +168,7 @@ frappe.ui.form.on('User', { email: frm.doc.email }, callback: function(r) { - if (r.message == undefined || r.message == "") { + if (!Array.isArray(r.message)) { frappe.route_options = { "email_id": frm.doc.email, "awaiting_password": 1,