Browse Source

Merge pull request #3602 from rmehta/standard-filters-fix-2

[fix] standard filters
version-14
Saurabh 8 years ago
committed by GitHub
parent
commit
6f23f4fb06
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      frappe/public/js/frappe/ui/base_list.js

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

@@ -194,8 +194,9 @@ frappe.ui.BaseList = Class.extend({

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


Loading…
Cancel
Save