Bug 18112: Use GetAuthValueDropbox from the template
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e3c7aa02a0
commit
a98759e3b7
|
|
@ -1,4 +1,5 @@
|
|||
[% USE Koha %]
|
||||
[% USE AuthorisedValues %]
|
||||
[% BLOCK 'alt-address-style' %]
|
||||
<fieldset class="rows" id="memberentry_address">
|
||||
<legend id="alt_address_lgd">Alternate address</legend>
|
||||
|
|
@ -55,6 +56,7 @@
|
|||
[% END %]
|
||||
|
||||
[% BLOCK 'alt-address-style_roadtypes' %]
|
||||
[% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %]
|
||||
[% IF roadtypes %]
|
||||
<li>
|
||||
[% IF ( mandatoryB_streettype ) %]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
[% USE Koha %]
|
||||
[% USE AuthorisedValues %]
|
||||
[% BLOCK 'main-address-style' %]
|
||||
<fieldset class="rows" id="memberentry_mainaddress">
|
||||
<legend id="main_address_lgd">Main address</legend>
|
||||
|
|
@ -46,6 +47,7 @@
|
|||
[% END %]
|
||||
|
||||
[% BLOCK 'address-style_roadtypes' %]
|
||||
[% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %]
|
||||
[% IF roadtypes %]
|
||||
<li>
|
||||
[% IF ( mandatorystreettype ) %]
|
||||
|
|
|
|||
|
|
@ -425,6 +425,7 @@
|
|||
<ol>
|
||||
[% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %]
|
||||
|
||||
[% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %]
|
||||
[% IF roadtypes %]
|
||||
[% UNLESS hidden.defined('streettype') %]
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -701,9 +701,7 @@ $template->param(
|
|||
);
|
||||
|
||||
my $cities = Koha::Cities->search( {}, { order_by => 'city_name' } );
|
||||
my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' );
|
||||
$template->param(
|
||||
roadtypes => $roadtypes,
|
||||
cities => $cities,
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -118,11 +118,6 @@ foreach my $attr (@$attributes) {
|
|||
}
|
||||
}
|
||||
|
||||
my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' );
|
||||
$template->param(
|
||||
roadtypes => $roadtypes,
|
||||
);
|
||||
|
||||
if ( $action eq 'create' ) {
|
||||
|
||||
my %borrower = ParseCgiForBorrower($cgi);
|
||||
|
|
|
|||
Loading…
Reference in New Issue