From 6d5edbb94b72794511095938a5aa1327f0ef6cd1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Dec 2025 11:48:29 +0100 Subject: [PATCH] Bug 41341: Do not search the description if filter is selected in the header For coded values we have a dropdown list with the list of the possible options, we should not search on the description Test plan: If you have CPL => Centerville C => CCC No items should be listed on catalogue/detail.pl?biblionumber=4 if you select Current library => 'CCC' --- 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 2a958ef20c3..9d20473583e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -550,7 +550,7 @@ function _dt_default_ajax(params) { coded_datatype && coded_datatype.length > 1 ) { - if (global_search.length || value.length) { + if (global_search.length) { coded_datatype = coded_datatype[1]; const search_value = value.length ? value -- 2.43.0