]> git.koha-community.org Git - koha.git/commit
Bug 21794: Fix display of addresses on details tab in staff when city is empty
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 23 Aug 2021 22:34:13 +0000 (00:34 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 16 Sep 2021 07:57:08 +0000 (21:57 -1000)
commit8befb42b50ebfd9b59adaaabd72aa122ded7adf9
treef6c80d0de24840d0f78e0a9a3926ac8c55b48415
parentadeda4f416eb03537cad8439fba5e2c1736ba59f
Bug 21794: Fix display of addresses on details tab in staff when city is empty

If the city field was not filled out on the main or alternate address,
the content of state, country and zipcode wouldn't display on the
Details tab in the patron account in staff.

To test:
- Enter main contact and alternate address without city
- Verify that the address information isn't shown on the details
  tab after saving
- Apply patch
- Verify that the information is displayed now
- Toggle AddressFormat and check display is correct for all settings
- Switch back to US address format
- Try several combinations of empty fields for city, zipcode, country
  and state. The punctuation and whitespace should always appear
  correctly.

Examples:
- Enter just country
- Enter zipcode and country
- ...

Signed-off-by: Hayley Pelham <hayleypelham@catalyst.net.nz>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 423a600ad1401ced777dc53e3fc9ceb78d073a91)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style.inc
koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc