fix: remove the 5th param everywhere
This commit is contained in:
parent
af65ae4a51
commit
798f3befff
1 changed files with 8 additions and 2 deletions
|
|
@ -1839,9 +1839,15 @@ Object.assign(frappe.utils, {
|
|||
},
|
||||
|
||||
process_filter_expression(filter) {
|
||||
return new Function(`return ${filter}`)();
|
||||
return this.cleanup_filters(new Function(`return ${filter}`)());
|
||||
},
|
||||
cleanup_filters(filters) {
|
||||
if (filters.length && filters[0].length == 5) {
|
||||
filters.pop();
|
||||
return filters;
|
||||
}
|
||||
return filters;
|
||||
},
|
||||
|
||||
get_filter_from_json(filter_json, doctype) {
|
||||
// convert json to filter array
|
||||
if (filter_json) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue