Skip to content

Commit

Permalink
[filters] Remove invalid field in fieldselect (#5381)
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Apr 4, 2018
1 parent 52b6c2a commit 2b0236a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/public/js/frappe/ui/filters/filter.js
Expand Up @@ -149,6 +149,7 @@ frappe.ui.Filter = class {
let original_docfield = (this.fieldselect.fields_by_name[doctype] || {})[fieldname];
if(!original_docfield) {
frappe.msgprint(__("Field {0} is not selectable.", [fieldname]));
this.remove();
return;
}

Expand Down

0 comments on commit 2b0236a

Please sign in to comment.