https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42244 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |In Discussion --- Comment #5 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to Jonathan Druart from comment #4)
Why do yo test `$.fn.multipleSelect` and not `$("#illfilter_status").length`?
diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js index 16b0fdb7481..c2e4393c961 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -661,6 +661,7 @@ $(document).ready(function () { } function addStatusOptions(statuses) { + if (!$("#illfilter_status").length){return} $("#illfilter_status").children().remove(); statuses .sort((a, b) => a.str.localeCompare(b.str)) -- You are receiving this mail because: You are watching all bug changes.