error in the reports while downloading in the mobile app (#3551)
This commit is contained in:
parent
615f135311
commit
64262dc635
2 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,8 @@ def export_query():
|
|||
data = frappe._dict(frappe.local.form_dict)
|
||||
|
||||
del data["cmd"]
|
||||
if "csrf_token" in data:
|
||||
del data["csrf_token"]
|
||||
|
||||
if isinstance(data.get("filters"), basestring):
|
||||
filters = json.loads(data["filters"])
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ def get_form_params():
|
|||
data = frappe._dict(frappe.local.form_dict)
|
||||
|
||||
del data["cmd"]
|
||||
if "csrf_token" in data:
|
||||
del data["csrf_token"]
|
||||
|
||||
if isinstance(data.get("filters"), basestring):
|
||||
data["filters"] = json.loads(data["filters"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue