Bug 26211: (follow-up) Remove age_low and age_high template variables
Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
579389ed32
commit
d0cbb308f7
2 changed files with 1 additions and 3 deletions
|
@ -116,7 +116,7 @@
|
|||
<li>Emails do not match! <a href="#borrower_repeat_email">confirm email address</a></li>
|
||||
[% END %]
|
||||
[% IF field == "ERROR_age_limitations" %]
|
||||
<li>Patron's age is incorrect for their category. Ages allowed are [% age_low | html %]-[% age_high | html %].</li>
|
||||
<li>Patron's age is incorrect for their category. Please try again.</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
|
|
|
@ -539,8 +539,6 @@ sub CheckForInvalidFields {
|
|||
my ( $low, $high ) = ( $borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit );
|
||||
if ( ( $high && ( $age > $high ) ) or ( $age < $low ) ) {
|
||||
push @invalidFields, 'ERROR_age_limitations';
|
||||
$template->param( age_low => $low);
|
||||
$template->param( age_high => $high);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue