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

(-)a/Koha/Patrons.pm (-2 / +1 lines)
Lines 388-394 sub search_patrons_to_update_category { Link Here
388
        my $dtf = Koha::Database->new->schema->storage->datetime_parser;
388
        my $dtf = Koha::Database->new->schema->storage->datetime_parser;
389
        if( $cat_from->dateofbirthrequired && $params->{too_young} ) {
389
        if( $cat_from->dateofbirthrequired && $params->{too_young} ) {
390
            my $date_after = dt_from_string()->subtract( years => $cat_from->dateofbirthrequired);
390
            my $date_after = dt_from_string()->subtract( years => $cat_from->dateofbirthrequired);
391
            $search_params->{dateofbirth}{'>'} = $dtf->format_datetime( $date_after );
391
            $search_params->{dateofbirth}{'>'} = $date_after->strftime("%Y-%m-%d");
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 + 1 ) );
394
            my $date_before = dt_from_string()->subtract( years => ( $cat_from->upperagelimit + 1 ) );
395
- 

Return to bug 26307