Skip to content

Commit

Permalink
Merge pull request #39391 from ruthra-kumar/multiple_typeerror_fixes
Browse files Browse the repository at this point in the history
fix: possible typerror in utils.js
  • Loading branch information
ruthra-kumar authored Jan 15, 2024
2 parents a36b6cb + 60b26ad commit 92a5cda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ function get_filters() {
options: budget_against_options,
default: "Cost Center",
reqd: 1,
get_data: function() {
console.log(this.options);
return ["Emacs", "Rocks"];
},
on_change: function() {
frappe.query_report.set_filter_value("budget_against_filter", []);
frappe.query_report.refresh();
Expand Down
2 changes: 1 addition & 1 deletion erpnext/public/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down

0 comments on commit 92a5cda

Please sign in to comment.