fixes due to changes in filter logic
This commit is contained in:
parent
18de6634d5
commit
6cade9a5b7
2 changed files with 5 additions and 5 deletions
|
|
@ -54,7 +54,7 @@ wn.ui.Search = Class.extend({
|
|||
});
|
||||
}
|
||||
});
|
||||
this.list.filter_list.add_filter('name', 'like');
|
||||
this.list.filter_list.add_filter(this.doctype, 'name', 'like');
|
||||
this.list.run();
|
||||
}
|
||||
})
|
||||
|
|
@ -318,19 +318,19 @@ wn.views.DocListView = wn.ui.Listing.extend({
|
|||
// second filter set for this field
|
||||
if(fieldname=='_user_tags') {
|
||||
// and for tags
|
||||
this.filter_list.add_filter(fieldname, 'like', '%' + label);
|
||||
this.filter_list.add_filter(this.doctype, fieldname, 'like', '%' + label);
|
||||
} else {
|
||||
// or for rest using "in"
|
||||
filter.set_values(fieldname, 'in', v + ', ' + label);
|
||||
filter.set_values(this.doctype, fieldname, 'in', v + ', ' + label);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// no filter for this item,
|
||||
// setup one
|
||||
if(fieldname=='_user_tags') {
|
||||
this.filter_list.add_filter(fieldname, 'like', '%' + label);
|
||||
this.filter_list.add_filter(this.doctype, fieldname, 'like', '%' + label);
|
||||
} else {
|
||||
this.filter_list.add_filter(fieldname, '=', label);
|
||||
this.filter_list.add_filter(this.doctype, fieldname, '=', label);
|
||||
}
|
||||
}
|
||||
this.run();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue