|
@@ -185,7 +185,9 @@ def make_form_dict(request): |
|
|
if 'application/json' in (request.content_type or '') and request_data: |
|
|
if 'application/json' in (request.content_type or '') and request_data: |
|
|
args = json.loads(request_data) |
|
|
args = json.loads(request_data) |
|
|
else: |
|
|
else: |
|
|
args = request.form or request.args |
|
|
|
|
|
|
|
|
args = {} |
|
|
|
|
|
args.update(request.args or {}) |
|
|
|
|
|
args.update(request.form or {}) |
|
|
|
|
|
|
|
|
if not isinstance(args, dict): |
|
|
if not isinstance(args, dict): |
|
|
frappe.throw(_("Invalid request arguments")) |
|
|
frappe.throw(_("Invalid request arguments")) |
|
|