Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Jonathan Druart 9ac2ddda0b
Bug 25069: Fix AddressFormat="fr" behavior
Something went wrong during a rebase of bug 13618
  commit dcd1f5d48c
  Bug 13618: Add html filters to all the variables

Several changes related to AddressFormat are wrong:

-    [% IF Koha.Preference( 'AddressFormat' ) %]
-        [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
-    [% ELSE %]
-        [% INCLUDE 'member-main-address-style-us.inc' %]
-    [% END %]
+    [% SWITCH Koha.Preference( 'AddressFormat' ) %]
+        [% CASE 'de' %]
+            [% INCLUDE 'member-main-address-style-de.inc' %]
+        [% CASE # us %]
+            [% INCLUDE 'member-main-address-style-us.inc' %]
+     [% END %]

Test plan:
Create a patron with all the address fields filled
Play with the 3 option values of AddressFormat, and confirm that the address is displayed correctly
on the patron's view, and in the patron module (top left)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-14 08:25:31 +01:00
..
tables
accountline-details.tt
apikeys.tt
boraccount.tt Bug 24604: Add 'Pay' button under Transactions tab in patron accounting 2020-04-06 12:24:37 +01:00
deletemem.tt Bug 24008: Display warnings in a list 2020-01-20 14:03:52 +00:00
discharge.tt
discharges.tt
files.tt
holdshistory.tt
housebound.tt
ill-requests.tt
mancredit.tt Bug 23805: Update mancredit to use the new credit types 2019-10-24 17:35:21 +01:00
maninvoice.tt Bug 14898: Add button at manual invoice to redirect to pay tab 2020-02-20 09:04:27 +00:00
member-flags.tt Bug 14741: Selecting all child permissions doesn't select the top level check box 2019-11-26 11:11:06 +00:00
member-password.tt Bug 22706: Add plugin hooks for Norwegian national patron database 2019-10-29 12:19:49 +00:00
member.tt Bug 17374: (follow-up) Remove spaces from include file 2020-03-10 15:18:29 +00:00
memberentrygen.tt Bug 25069: Fix AddressFormat="fr" behavior 2020-04-14 08:25:31 +01:00
members-update.tt Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
merge-patrons.tt
moremember-brief.tt Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
moremember-print.tt Bug 23049: Update existing code to use debit_type 2019-10-24 17:24:15 +01:00
moremember.tt Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
notices.tt Bug 23673: Add "Updated on" column to patron's notices 2020-02-05 14:22:43 +00:00
pay.tt Bug 23051: (follow-up) Fix renew summary display 2020-03-06 10:03:51 +00:00
paycollect.tt Bug 24495: Reword change collection feature 2020-03-18 08:45:07 +00:00
printfeercpt.tt
printinvoice.tt
purchase-suggestions.tt Bug 24585: Add 'Managed on' and 'Suggested on' columns to pat_purchase_suggestions.tt 2020-02-10 10:15:25 +00:00
readingrec.tt
routing-lists.tt
statistics.tt
update-child.tt