@@ -, +, @@ --- Koha/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -975,7 +975,7 @@ sub can_request_article { my $count = Koha::ArticleRequests->search( [ { borrowernumber => $self->borrowernumber, status => [ 'REQUESTED', 'PENDING', 'PROCESSING' ] }, - { borrowernumber => $self->borrowernumber, status => 'COMPLETED', updated_on => { '>=' => \'DATE(NOW())' } }, + { borrowernumber => $self->borrowernumber, status => 'COMPLETED', updated_on => { '>=' => \'CAST(NOW() AS DATE)' } }, ] )->count; return $count < $limit ? 1 : 0; --