mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions
This commit is contained in:
@@ -114,7 +114,7 @@ cur_frm.fields_dict.lead.get_query = function(doc,cdt,cdn) {
|
||||
|
||||
cur_frm.cscript.lead = function(doc, cdt, cdn) {
|
||||
if(doc.lead) {
|
||||
cur_frm.call({
|
||||
return cur_frm.call({
|
||||
doc: cur_frm.doc,
|
||||
method: "set_lead_defaults",
|
||||
callback: function(r) {
|
||||
@@ -152,7 +152,7 @@ cur_frm.cscript['Declare Order Lost'] = function(){
|
||||
dialog.fields_dict.update.$input.click(function() {
|
||||
args = dialog.get_values();
|
||||
if(!args) return;
|
||||
cur_frm.call({
|
||||
return cur_frm.call({
|
||||
method: "declare_order_lost",
|
||||
doc: cur_frm.doc,
|
||||
args: args.reason,
|
||||
|
||||
Reference in New Issue
Block a user