Bug 25839: Fix typo patron.streetype in member-main-address-style.inc
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 22 Jun 2020 09:58:56 +0000 (11:58 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 23 Jun 2020 08:15:25 +0000 (10:15 +0200)
Typo in member-main-address-style.inc : patron.streetype > patron.streettype

Generates error :
Template process failed: undef error - The method Koha::Patron->streetype is not covered by tests!

Test plan : try create a new patron

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc

index fb0f37a..edee601 100644 (file)
@@ -57,7 +57,7 @@
             <select name="streetype">
                 <option value=""></option>
                 [% FOR roadtype IN roadtypes %]
-                    [% IF roadtype.authorised_value == patron.streetype %]
+                    [% IF roadtype.authorised_value == patron.streettype %]
                         <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
                     [% ELSE %]
                         <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>