[minor][fix] filters bug in baselist
This commit is contained in:
parent
9414bec421
commit
00a03dd689
1 changed files with 2 additions and 2 deletions
|
|
@ -381,7 +381,7 @@ frappe.ui.BaseList = Class.extend({
|
|||
this.start += this.page_length;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
refresh: function () {
|
||||
this.run();
|
||||
},
|
||||
|
|
@ -411,7 +411,7 @@ frappe.ui.BaseList = Class.extend({
|
|||
} else {
|
||||
// no filter for this item,
|
||||
// setup one
|
||||
if (['_user_tags', '_comments', '_assign', '_liked_by'].ƒincludes(fieldname)) {
|
||||
if (['_user_tags', '_comments', '_assign', '_liked_by'].includes(fieldname)) {
|
||||
this.filter_list.add_filter(this.doctype, fieldname, 'like', '%' + label + '%');
|
||||
} else {
|
||||
this.filter_list.add_filter(this.doctype, fieldname, '=', label);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue