Fix count filter load

This commit is contained in:
Suraj Shetty 2018-10-03 16:16:40 +05:30
parent ca57680867
commit 32f8ae5c81
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,8 @@ def get_list(doctype, fields=None, filters=None, order_by=None,
@frappe.whitelist()
def get_count(doctype, filters=None, debug=False, cache=False):
return frappe.db.count(doctype, filters, debug, cache)
return frappe.db.count(doctype, json.loads(filters), debug, cache)
@frappe.whitelist()
def get(doctype, name=None, filters=None, parent=None):

View file

@ -3,6 +3,7 @@
}
.flex-column {
display: flex;
flex-direction: column;
}