[minor] dont render filters for no value fields

This commit is contained in:
Rushabh Mehta 2017-07-03 13:20:19 +05:30
parent 7c9f2c7deb
commit e4ba84fe74

View file

@ -192,9 +192,8 @@ frappe.ui.BaseList = Class.extend({
onchange: () => { me.refresh(true); }
});
var has_standard_filters = false;
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) {
var options = df.options.split("\n")
if(options.length > 0 && options[0] != ""){