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

(-)a/Koha/Patrons.pm (-3 / +2 lines)
Lines 391-398 sub search_patrons_to_update_category { Link Here
391
            $search_params->{dateofbirth}{'>'} = $dtf->format_datetime( $date_after );
391
            $search_params->{dateofbirth}{'>'} = $dtf->format_datetime( $date_after );
392
        }
392
        }
393
        if( $cat_from->upperagelimit && $params->{too_old} ) {
393
        if( $cat_from->upperagelimit && $params->{too_old} ) {
394
            my $date_before = dt_from_string()->subtract( years => $cat_from->upperagelimit);
394
            my $date_before = dt_from_string()->subtract( years => ( $cat_from->upperagelimit + 1 ) );
395
            $search_params->{dateofbirth}{'<'} = $dtf->format_datetime( $date_before );
395
            $search_params->{dateofbirth}{'<='} = $date_before->strftime("%Y-%m-%d");
396
        }
396
        }
397
    }
397
    }
398
    if ($params->{fine_min} || $params->{fine_max}) {
398
    if ($params->{fine_min} || $params->{fine_max}) {
399
- 

Return to bug 26307