From 0334936449e5e2fdb80782316c0e543ca666542f Mon Sep 17 00:00:00 2001 From: Tom-Finke Date: Tue, 26 Apr 2022 14:38:18 +0200 Subject: [PATCH] fix: filters not working on "select items" dialog boxes (#16765) * Fix: is_child_selection_enabled for multiselect dialog filter * fix: check if field exists before fetching value Co-authored-by: Ankush Menat --- frappe/public/js/frappe/form/multi_select_dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/multi_select_dialog.js b/frappe/public/js/frappe/form/multi_select_dialog.js index 61922a2422..92d2759f7f 100644 --- a/frappe/public/js/frappe/form/multi_select_dialog.js +++ b/frappe/public/js/frappe/form/multi_select_dialog.js @@ -151,7 +151,7 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog { } is_child_selection_enabled() { - return this.dialog.fields_dict['allow_child_item_selection'].get_value(); + return this.dialog.fields_dict['allow_child_item_selection']?.get_value(); } toggle_child_selection() {