fix: web_form_list.js invalid condition_json (backport #23277) (#23279)

Co-authored-by: Nrtyck <37080373+Nrtyck@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2023-11-18 23:03:23 +05:30 committed by GitHub
parent 0d0ff686e0
commit ac1c804532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}