From b632cc558bc38e274161b91efeeb60ad1b7f59a6 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 28 Jan 2022 18:47:57 +0530 Subject: [PATCH] fix: remove unnecessary array transformation in request args `key: ['value', 'value2']` is turned into `key: 'value'` for no reason --- frappe/app.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frappe/app.py b/frappe/app.py index d73dd67983..609a8535d7 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -192,12 +192,7 @@ def make_form_dict(request): if not isinstance(args, dict): frappe.throw(_("Invalid request arguments")) - try: - frappe.local.form_dict = frappe._dict({ - k: v[0] if isinstance(v, (list, tuple)) else v for k, v in args.items() - }) - except IndexError: - frappe.local.form_dict = frappe._dict(args) + frappe.local.form_dict = frappe._dict(args) if "_" in frappe.local.form_dict: # _ is passed by $.ajax so that the request is not cached by the browser. So, remove _ from form_dict