From e08bf3bb4c4ef8208f7895c000397e4122664c57 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 Oct 2023 15:32:53 +0200 Subject: [PATCH] Bug 35127: Fix 'Search type' for patron search We need to fallback on the syspref DefaultPatronSearchMethod but keep the value when one is passed! Test plan: Search for patrons, and use the "search type". Set it to different values than DefaultPatronSearchMethod and confirm that the value is kept. Fix is expected when searching for patrons in the header (use the options to select a different value and run the search) Signed-off-by: Lucas Gass Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/includes/member-search-box.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 2 +- members/member.pl | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-search-box.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-search-box.inc index 70c22389d2..0d02459f01 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-search-box.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-search-box.inc @@ -4,7 +4,7 @@ [% USE Koha %] [% PROCESS 'patronfields.inc' %] [% IF CAN_user_borrowers_edit_borrowers %] - [%- SET searchtype = Koha.Preference('DefaultPatronSearchMethod') -%] + [%- SET searchtype = searchtype || Koha.Preference('DefaultPatronSearchMethod') -%] [% IF( bs_tab_active ) %]