From 9ec67bcba2e0f699de71f000edaf4e3442010a84 Mon Sep 17 00:00:00 2001 From: Andrew Fuerste Henry Date: Tue, 8 Apr 2025 12:32:04 +0000 Subject: [PATCH] Bug 39576: Show preferred_name for hiddenborrowername MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The last patron menu uses the value "hiddenborrowername." I've made that use preferred_name instead of firstname. When a patron's preferred_name is not manually set/edited, it automatically takes the value of firstname, so we don't need an IF in the template toolkit here. To test: 1 - have a patron with a preferred_name and one without 2 - get both patrons in the Last Patron dropdown, confirm they both show firstname 3 - apply patch, restart services, clear cache, reload page 4 - get your patrons in Last Patron again, confirm now one shows preferred name and the other firstname Signed-off-by: Emmanuel Bétemps Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 829186d77de56d4de05f1da6faf358e7722e8c3c) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 56d4e923af..cff1dd0960 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -27,7 +27,7 @@ [% IF Koha.Preference('showLastPatron') %] - + [% END %]