From 901af83f485a7597160ad1c35292319b5d9104e4 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 27 Sep 2012 17:17:23 +0530 Subject: [PATCH] lead.js, bugfix --- selling/doctype/lead/lead.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selling/doctype/lead/lead.js b/selling/doctype/lead/lead.js index 3f45603a64f..523ddd22af3 100644 --- a/selling/doctype/lead/lead.js +++ b/selling/doctype/lead/lead.js @@ -45,7 +45,7 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) { cur_frm.cscript.make_communication_body(); } -cur_frm.cscript.refresh_custom_buttons = function() { +cur_frm.cscript.refresh_custom_buttons = function(doc) { cur_frm.clear_custom_buttons(); if(!doc.__islocal && !in_list(['Converted', 'Lead Lost'], doc.status)) { if (doc.source != 'Existing Customer') { @@ -61,7 +61,7 @@ cur_frm.cscript.refresh_custom_buttons = function() { cur_frm.cscript.refresh = function(doc, cdt, cdn) { // custom buttons //--------------- - cur_frm.cscript.refresh_custom_buttons(); + cur_frm.cscript.refresh_custom_buttons(doc); erpnext.hide_naming_series();