Bug 25452: Restore alternate address email display
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 May 2020 08:58:15 +0000 (10:58 +0200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Fri, 12 Jun 2020 01:04:58 +0000 (03:04 +0200)
Broken since
  commit 0ab22e1c7c6b6e8d14a4fb7478ab2a3d42da347d
  Bug 18789: Send Koha::Patron object to the templates

Test plan:
Create or modify a patron, fill the "email" field of the "alternate
address" block (B_email)
Go to the detail view of the patron
=> Without this patch the email is not display
=> With this patch applied you see it!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 635242a69a5ed049801d018a6be712d8dcbabb07)
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit e42359b1f53937afc2f14b6d35b7b2758fcb0a9d)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

index 2304543..f8535d3 100644 (file)
                                             [% IF ( patron.B_email ) %]
                                                 <li id="patron-bemail" class="email">
                                                     <span class="label">Email: </span>
-                                                    <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
+                                                    <a title="[% patron.B_email | html %]" href="mailto:[% patron.B_email | url %]">[% patron.B_email |html %]</a>
                                                 </li>
                                             [% END %]