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

(-)a/Koha/Patron.pm (-2 / +1 lines)
Lines 975-981 sub can_request_article { Link Here
975
975
976
    my $count = Koha::ArticleRequests->search(
976
    my $count = Koha::ArticleRequests->search(
977
        [   { borrowernumber => $self->borrowernumber, status => [ 'REQUESTED', 'PENDING', 'PROCESSING' ] },
977
        [   { borrowernumber => $self->borrowernumber, status => [ 'REQUESTED', 'PENDING', 'PROCESSING' ] },
978
            { borrowernumber => $self->borrowernumber, status => 'COMPLETED', updated_on => { '>=' => \'DATE(NOW())' } },
978
            { borrowernumber => $self->borrowernumber, status => 'COMPLETED', updated_on => { '>=' => \'CAST(NOW() AS DATE)' } },
979
        ]
979
        ]
980
    )->count;
980
    )->count;
981
    return $count < $limit ? 1 : 0;
981
    return $count < $limit ? 1 : 0;
982
- 

Return to bug 27945