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 <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2023-01-04 23:03:42 +00:00 committed by Tomas Cohen Arazi
parent 06960c91e4
commit 5acc976dec
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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);