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 <ankush@frappe.io>
This commit is contained in:
Tom-Finke 2022-04-26 14:38:18 +02:00 committed by GitHub
parent d881fb7ab5
commit 0334936449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {