From f36aee2c6ba1d2034bf1cad3881b2630627702c5 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Sat, 5 May 2012 20:05:58 +0530 Subject: [PATCH] fix in contact address saving issue --- erpnext/utilities/doctype/contact/contact.js | 2 +- js/all-app.js | 9 ++++----- js/all-web.js | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/erpnext/utilities/doctype/contact/contact.js b/erpnext/utilities/doctype/contact/contact.js index 9244b79fc3..ae06ed4203 100644 --- a/erpnext/utilities/doctype/contact/contact.js +++ b/erpnext/utilities/doctype/contact/contact.js @@ -15,7 +15,7 @@ // along with this program. If not, see . //--------- ONLOAD ------------- -cur_frm.cscript.onload = function(doc, cdt, cdn) { +cur_frm.cscript.onload = function(doc, cdt, cdn) { if(doc.customer) cur_frm.add_fetch('customer', 'customer_name', 'customer_name'); if(doc.supplier) cur_frm.add_fetch('supplier', 'supplier_name', 'supplier_name'); diff --git a/js/all-app.js b/js/all-app.js index 97ece36d5c..65ca12478c 100644 --- a/js/all-app.js +++ b/js/all-app.js @@ -1314,7 +1314,7 @@ LocalDB.delete_doc=function(dt,dn){var doc=get_local(dt,dn);for(var ndt in local delete locals[dt][dn];} function get_local(dt,dn){return locals[dt]?locals[dt][dn]:null;} LocalDB.sync=function(list){if(list._kl)list=expand_doclist(list);for(var i=0;i' +(cur_frm.message_after_save?cur_frm.message_after_save:'Your information has been sent. Thank you!') +'';return;} -if(!me.meta.istable){me.refresh();} +if(!me.meta.istable){me.refresh(r.docname);} if(call_back){call_back(r);}} var me=this;var ret_fn_err=function(r){var doc=locals[me.doctype][me.docname];me.savingflag=false;ret_fn(r);} this.savingflag=true;if(this.docname&&validated){scroll(0,0);return this.savedoc(save_action,ret_fn,ret_fn_err);}} diff --git a/js/all-web.js b/js/all-web.js index 24ee8f4aaf..00d396acfe 100644 --- a/js/all-web.js +++ b/js/all-web.js @@ -758,7 +758,7 @@ LocalDB.delete_doc=function(dt,dn){var doc=get_local(dt,dn);for(var ndt in local delete locals[dt][dn];} function get_local(dt,dn){return locals[dt]?locals[dt][dn]:null;} LocalDB.sync=function(list){if(list._kl)list=expand_doclist(list);for(var i=0;i