From 820c3cedb4737fbd6d19980e27d4325c0d6afe55 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Mar 2023 13:55:19 +0100 Subject: [PATCH] Bug 33155: Fix category and library filters in patron search header Caused by commit f1925cf89dbc1039fc48abfabad1472289387148 Bug 7380: Rename filter to avoid confusion [% IF categorycode %] - $("#categorycode_filter").val("[% categorycode %]"); + $("#categorycode_filter").val("[% categorycode_filter %]"); [% END %] [% IF branchcode %] - $("#branchcode_filter").val("[% branchcode %]"); + $("#branchcode_filter").val("[% branchcode_filter %]"); [% END %] Forgot to rename the vars in the IF statements Test plan: Go to the Koha mainpage Click "Search patrons" in the headers Open the filters Select something for library and category, search => The values must be picked for the patron search Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 79e4aabc31c85fc32f2f09599818fd7b4dff117f) Signed-off-by: Matt Blenkinsop --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index deb8374d74..923ecd1074 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -279,10 +279,10 @@ [% IF searchtype %] $("#searchtype_filter").val("[% searchtype | html %]"); [% END %] - [% IF categorycode %] + [% IF categorycode_filter %] $("#categorycode_filter").val("[% categorycode_filter | html %]"); [% END %] - [% IF branchcode %] + [% IF branchcode_filter %] $("#branchcode_filter").val("[% branchcode_filter | html %]"); [% END %] -- 2.39.5