Skip to content

Commit

Permalink
Bug 26211: (follow-up) Remove age_low and age_high template variables
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Sowanick <[email protected]>
Signed-off-by: Katrin Fischer <[email protected]>
  • Loading branch information
ricofreak authored and kfischer committed Dec 30, 2024
1 parent 579389e commit d0cbb30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions opac/opac-memberentry.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d0cbb30

Please sign in to comment.