Error in frappe multi_select_dialog.js

Hi all,

I tried to use the frappe Multiselectdialog that is defined in the multi_select_dialog.js
In the debugger I repeatedly received an error and filtering did not work.

The error was:

Uncaught TypeError: this.dialog.fields_dict.allow_child_item_selection is undefined

The respective code line is line 154:

return this.dialog.fields_dict['allow_child_item_selection'].get_value();

the field_dict does indeed not have a “allow_child_item_selection”. I changed the line to:

return this.allow_child_item_selection;

Now it is working.

I am not a programmer and found this out by trial and error. Is this a bug?

Best regards,