@@ -, +, @@ [WARN] SQL::Abstract::belch(): [SQL::Abstract::_where_field_op_ARRAYREF] Warning: A multi-element arrayref as an argument to the inequality op '!=' is technically equivalent to an always-true 1=1 (you probably wanted to say ...{ $inequality_op => [ -and => @values ] }... instead) at /usr/share/koha/Koha/Objects.pm line 601 --- 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 $dtf = Koha::Database->new->schema->storage->datetime_parser; my $compdate = dt_from_string->add( days => -1 ); my $count = Koha::ArticleRequests->search([ - { borrowernumber => $self->borrowernumber, status => { '!=' => ['CANCELED','COMPLETED'] } }, + { borrowernumber => $self->borrowernumber, status => ['PENDING','PROCESSING'] }, { borrowernumber => $self->borrowernumber, status => 'COMPLETED', updated_on => { '>', $dtf->format_date($compdate) }}, ])->count; return $count < $limit ? 1 : 0; --