From 74957821f951ec15b67e4707d562261724145805 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 4 Jan 2023 23:03:42 +0000 Subject: [PATCH] Bug 32570: Display patron.state correctly To test: 1. Have a patron with both a city and state in their Main address. 2. Do a patron search that will return that patron among others. 3. Notice the patroncity will say something like Centerville, Centerville: repeating the city but no state. 4. Apply patch 5. Try step 2 again, this time the city, state should display correctly. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 5acc976dec573ddd679219a0e920871a10622ac3) Signed-off-by: Jacob O'Mara --- .../intranet-tmpl/prog/en/includes/js-patron-format-address.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc index 1b6425b28e..f72d28371b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc @@ -31,7 +31,7 @@ if ( data.city ) { address += ', '; } - address += escape_str(data.city); + address += escape_str(data.state); } if ( data.postal_code ) { address += " " + escape_str(data.postal_code); -- 2.39.5