Bug 26666: Fix line breaks in addresses displayed with AddressFormat French or German
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 16 Oct 2020 00:00:16 +0000 (02:00 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 25 Oct 2020 23:14:41 +0000 (00:14 +0100)
commitb9d6b92ac108fd4753fb76346f5d236d8c59f874
tree1557cb9d26269b31cccfd77028699554c6b4f501
parent974c93f908179ff16a162d8010ddbd9710fbff46
Bug 26666: Fix line breaks in addresses displayed with AddressFormat French or German

When Addressformat is set to French or German the addresses on the Details
tab will display <br /> in plain text. This is because a TT variable is used
for adding line breaks that is either set to <br /> or "". Then this variable is
escaped with the html filter... so we see the HTML tag uninterpreted.
Switching to $raw for this specific case.

To test:
- Go to any patron account,
- Fill in the various address fields
- Switch the AddressFormat system preference to different settings
- Verify the false display for French and German on the Details tab and
  in the brief info on the left side in the patron account
- Apply patch
- Repeat testing
- All AddressFormats should now display correctly

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style.inc