From d7d8bcecdf8792765aef4dbbe20a58d935b9d8be Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 5 Jan 2024 12:01:55 +0100 Subject: [PATCH] Bug 35743: Fix patron's category selection in the column filter The "category" filter is not selected in the column filter dropdown. Test plan: 0. Do not apply this patch 1. Search for patron, select a patron's category => Notice that the "Category" column has a column filter, but no option is selected 2. Apply the patch 3. Repeat 1 => The "Category" column has the option you selected in the filter block. Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 426324062d7f06450123e4e34842f39000bb239f) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 7a391a9392..bac7d5d40d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -780,7 +780,7 @@ 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); + patrons_table.find('thead tr:eq(1) th[data-filter="categories"] select').val(category_id.toLowerCase()); table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); [% END %] [% END %] -- 2.39.5