From ac1c80453250aca30241c3535420ca7b912a9b4f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 18 Nov 2023 23:03:23 +0530 Subject: [PATCH] fix: web_form_list.js invalid condition_json (backport #23277) (#23279) Co-authored-by: Nrtyck <37080373+Nrtyck@users.noreply.github.com> --- frappe/public/js/frappe/web_form/web_form_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/web_form/web_form_list.js b/frappe/public/js/frappe/web_form/web_form_list.js index 1db53a4b51..67a29319ca 100644 --- a/frappe/public/js/frappe/web_form/web_form_list.js +++ b/frappe/public/js/frappe/web_form/web_form_list.js @@ -110,7 +110,7 @@ export default class WebFormList { fetch_data() { if (this.condition_json && JSON.parse(this.condition_json)) { - let filter = frappe.utils.get_filter_from_json(this.condition_json); + let filter = frappe.utils.get_filter_from_json(this.condition_json,this.doctype); filter = frappe.utils.get_filter_as_json(filter); this.filters = Object.assign(this.filters, JSON.parse(filter)); }