From 6686119a11dd90581393b5e31814ca207a1cc230 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 11 Jun 2025 12:27:43 +0000 Subject: [PATCH] Bug 40122: [24.11] Fix datatable select search if data has parenthesis --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 0caf1084f0a..20f0be4a6cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -906,8 +906,8 @@ function _dt_add_delay_filters(table_dt, table_node) { let col_input_search = DataTable.util.debounce(function (i, val) { table_dt.column(i).search(val).draw(); }, delay_ms); - let col_select_search = DataTable.util.debounce(function (i, val) { - table_dt.column(i).search(val, true, false).draw(); + let col_select_search = DataTable.util.debounce(function (i, val, regex_search = true) { + table_dt.column(i).search(val, regex_search, false).draw(); }, delay_ms); $(table_node).find('thead tr:eq(1) th').each( function (visible_i) { @@ -922,7 +922,7 @@ function _dt_add_delay_filters(table_dt, table_node) { $(this).find("select") .unbind() .bind("keyup change", function(){ - col_select_search(i, this.value) + col_select_search(i, this.value, false) }); }); } -- 2.39.5