error in the reports while downloading in the mobile app (#3551)

This commit is contained in:
Manas Solanki 2017-06-23 17:53:42 +05:30 committed by Rushabh Mehta
parent 615f135311
commit 64262dc635
2 changed files with 4 additions and 0 deletions

View file

@ -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"])

View file

@ -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"])