From 3e52f44a791bf05bf371012d16c293ae021c3cf1 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 10 Aug 2017 16:09:08 +0530 Subject: [PATCH] [minor] contact.js --- frappe/contacts/doctype/contact/contact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/contacts/doctype/contact/contact.js b/frappe/contacts/doctype/contact/contact.js index d44904d9d5..109b971430 100644 --- a/frappe/contacts/doctype/contact/contact.js +++ b/frappe/contacts/doctype/contact/contact.js @@ -18,7 +18,7 @@ frappe.ui.form.on("Contact", { if(!frm.doc.user && !frm.is_new() && frm.perm[0].write) { frm.add_custom_button(__("Invite as User"), function() { - frappe.call({ + return frappe.call({ method: "frappe.contacts.doctype.contact.contact.invite_user", args: { contact: frm.doc.name