https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30093
--- Comment #17 from Jonathan Druart <[email protected]> --- Fixing bug 30055 comment 85 point 4. Changes: [% CASE 'branch' %] library_id = $("#branchcode_filter").val() || ""; patrons_table.find('thead tr:eq(1) th[data-filter="libraries"] select').val(library_id); - if (library_id) - table_dt.column([% loop.count - 1 %]).search('^'+library_id+'$'); + table_dt.column([% loop.count - 1 %]).search(library_id ? '^'+library_id+'$' : ''); [% CASE 'category' %] let category_id = $("#categorycode_filter").val() || ""; patrons_table.find('thead tr:eq(1) th[data-filter="categories"] select').val(category_id); - if (category_id) - table_dt.column([% loop.count - 1 %]).search('^'+category_id+'$'); + table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); [% END %] [% END %] table_dt.search(""); -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
