From 9f623e2962cdd662d751c68f1887cd495b20cf1d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Oct 2024 14:26:34 +0200 Subject: [PATCH] Bug 33484: (follow-up) Fix category select Lower everything or broken for library Signed-off-by: Pedro Amorim Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index cdb506d849..3388b187d3 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -880,7 +880,7 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { // Compare with lc, or selfreg won't match ^SELFREG$ for instance, see bug 32517 // This is only for category, we might want to apply it only in this case. existing_search = existing_search.toLowerCase() - if ( existing_search === this._id || (existing_search && this._id.match(existing_search)) ) { + if ( existing_search === this._id || (existing_search && this._id.toLowerCase().match(existing_search)) ) { o.prop("selected", "selected"); } o.appendTo(select); -- 2.39.5