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:
Lucas Gass 2024-12-10 23:27:27 +00:00 committed by Katrin Fischer
parent 579389ed32
commit d0cbb308f7
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 1 additions and 3 deletions

View file

@ -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>

View file

@ -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);
}
}