From c4a2170814f77cb5bf4c8c6b143798ee4bf492e6 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 11 Mar 2025 16:57:47 +0000 Subject: [PATCH] Bug 39283: Concat middle name with preffered name if it exists 1. Have a patron with a middle name 2. Do a patron search that brings them up, no middle name appears 3. APPLY PATCH 4. Try again, middle name should appear in patron searches. Signed-off-by: SympoKoha --- koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc index ba0197ebaa..42c647e085 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc @@ -25,6 +25,7 @@ if (patron.middle_name != null && patron.middle_name != "") { firstname += " " + escape_str(patron.middle_name); + preferred_name += " " + escape_str(patron.middle_name); } if (patron.other_name != null && patron.other_name != "") { -- 2.39.5