Browse Source

Merge pull request #3595 from rmehta/standard-filters-hot

[minor] dont render filters for no value fields
version-14
Makarand Bauskar 8 years ago
committed by GitHub
parent
commit
c0a2e7c6c8
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      frappe/public/js/frappe/ui/base_list.js

+ 1
- 2
frappe/public/js/frappe/ui/base_list.js View File

@@ -192,9 +192,8 @@ frappe.ui.BaseList = Class.extend({
onchange: () => { me.refresh(true); } onchange: () => { me.refresh(true); }
}); });


var has_standard_filters = false;
this.meta.fields.forEach(function(df) { this.meta.fields.forEach(function(df) {
if(df.in_standard_filter) {
if(df.in_standard_filter && !frappe.model.no_value_type.includes(df.fieldtype)) {
if(df.fieldtype == "Select" && df.options) { if(df.fieldtype == "Select" && df.options) {
var options = df.options.split("\n") var options = df.options.split("\n")
if(options.length > 0 && options[0] != ""){ if(options.length > 0 && options[0] != ""){


Loading…
Cancel
Save