View | Details | Raw Unified | Return to bug 8392
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +1 lines)
Lines 168-174 Link Here
168
			[% END %]
168
			[% END %]
169
			[% IF ( ERROR_age_limitations ) %]
169
			[% IF ( ERROR_age_limitations ) %]
170
				<li id="ERROR_age_limitations">Patron's age is incorrect for their category.  
170
				<li id="ERROR_age_limitations">Patron's age is incorrect for their category.  
171
					Ages allowed are [% ERROR_age_limitations %].</li>
171
					Ages allowed are [% age_low %]-[% age_high %].</li>
172
			[% END %]
172
			[% END %]
173
			[% IF ( ERROR_branch ) %]
173
			[% IF ( ERROR_branch ) %]
174
				<li id="ERROR_branch">Library is invalid.</li>
174
				<li id="ERROR_branch">Library is invalid.</li>
(-)a/members/memberentry.pl (-2 / +2 lines)
Lines 272-278 if ($op eq 'save' || $op eq 'insert'){ Link Here
272
        my ($low,$high) = ($borrowercategory->{'dateofbirthrequired'}, $borrowercategory->{'upperagelimit'});
272
        my ($low,$high) = ($borrowercategory->{'dateofbirthrequired'}, $borrowercategory->{'upperagelimit'});
273
        if (($high && ($age > $high)) or ($age < $low)) {
273
        if (($high && ($age > $high)) or ($age < $low)) {
274
            push @errors, 'ERROR_age_limitations';
274
            push @errors, 'ERROR_age_limitations';
275
            $template->param('ERROR_age_limitations' => "$low to $high");
275
            $template->param( age_low => $low);
276
            $template->param( age_high => $high);
276
        }
277
        }
277
    }
278
    }
278
  
279
  
279
- 

Return to bug 8392