From 7b2b4941048cc3d39491e8f2c8c691b4369a71bf 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 --- .../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 70c22389d27..0d02459f019 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 ) %]