Bug 33484: (follow-up) Fix category select

Lower everything or broken for library

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-10-23 14:26:34 +02:00 committed by Katrin Fischer
parent 382ae250bf
commit 9f623e2962
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -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);