fix: possible typerror in utils.js
and remove unwanted debugging statements
(cherry picked from commit 60b26ad8b2)
This commit is contained in:
@@ -21,7 +21,7 @@ $.extend(erpnext, {
|
||||
},
|
||||
|
||||
toggle_naming_series: function() {
|
||||
if(cur_frm.fields_dict.naming_series) {
|
||||
if(cur_frm && cur_frm.fields_dict.naming_series) {
|
||||
cur_frm.toggle_display("naming_series", cur_frm.doc.__islocal?true:false);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user