Lines 384-390
sub search_patrons_to_update_category {
Link Here
|
384 |
$search_params->{dateofbirth}{'>'} = $dtf->format_datetime($date_after); |
384 |
$search_params->{dateofbirth}{'>'} = $dtf->format_datetime($date_after); |
385 |
} |
385 |
} |
386 |
if ( $cat_from->upperagelimit && $params->{too_old} ) { |
386 |
if ( $cat_from->upperagelimit && $params->{too_old} ) { |
387 |
my $date_before = dt_from_string()->subtract( years => $cat_from->upperagelimit ); |
387 |
|
|
|
388 |
# Must be `upperagelimit + 1` years old (e.g., if limit is 17, query for 18+) |
389 |
my $date_before = dt_from_string()->subtract( years => $cat_from->upperagelimit + 1 ); |
388 |
$search_params->{dateofbirth}{'<'} = $dtf->format_datetime($date_before); |
390 |
$search_params->{dateofbirth}{'<'} = $dtf->format_datetime($date_before); |
389 |
} |
391 |
} |
390 |
} |
392 |
} |
391 |
- |
|
|