Filter_count is not defined

If filter is not present, an error is thrown

Is this User doctype? Seems to be working fine in the test account.

Which version ?

Just pulled the code today evening.

Same issue,
Just updated:

Installed Apps

ERPNext: v8.9.0 (master)

Frappe Framework: v8.8.0 (master)

if choosen the email menu:

ReferenceError: filter_count is not defined[További tudnivalók] list.min.js:184:6
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 52, in execute_cmd
return, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 922, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/”, line 233, in get_sidebar_stats
return {“defined_cat”:cat_tags, “stats”:get_stats(stats, doctype, filters)}
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/”, line 255, in get_stats
filters = filters + [“ifnull(%s,‘’)!=‘’” % tag], group_by = tag, as_list = True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 1128, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 88, in execute
result = self.build_and_run()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 100, in build_and_run
args = self.prepare_args()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 118, in prepare_args
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 249, in build_conditions
self.build_filter_conditions(self.filters, self.conditions)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 270, in build_filter_conditions
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 278, in prepare_filter_condition
f = get_filter(self.doctype, f)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 735, in get_filter
frappe.throw(frappe._(“Filter must have 4 values (doctype, fieldname, operator, value): {0}”).format(str(f)))
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 319, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 309, in msgprint
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 282, in _raise_exception
raise raise_exception(encode(msg))
ValidationError: Szűrésnek 4 értékűnek kell lennie (doctype, mezőnév, operátor, érték): [u’Communication’, u’communication_type’, u’=‘, u’Communication’, True]

ValidationError:Filter shuld be with 4 value (doctype, field name, operator, value) : [u’Communication’, u’communication_type’, u’=‘, u’Communication’, True]


Thanks for reporting

We have fixed the filter_count issue please run the bench update and check



Appreciate your help.

It works as should be.

Please close this issue.