From a81ed82910bf87a115a0d2de8398ccfad100179e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 10 Dec 2024 23:27:27 +0000 Subject: [PATCH] Bug 26211: (follow-up) Remove age_low and age_high template variables --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 2 +- opac/opac-memberentry.pl | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index cdfb6c94ec..6ee5793dcb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -116,7 +116,7 @@
  • Emails do not match! confirm email address
  • [% END %] [% IF field == "ERROR_age_limitations" %] -
  • Patron's age is incorrect for their category. Ages allowed are [% age_low | html %]-[% age_high | html %].
  • +
  • Patron's age is incorrect for their category. Please try again.
  • [% END %] [% END %] diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index c4d8cce7a3..4869648d14 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -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); } } -- 2.39.2