@@ -, +, @@ statuses --- Koha/REST/V1/Illrequests.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/Koha/REST/V1/Illrequests.pm +++ a/Koha/REST/V1/Illrequests.pm @@ -64,7 +64,15 @@ sub list { # If necessary, only get those from a specified patron my @requests = Koha::Illrequests->search({ $hidden_statuses - ? ( status => { 'not in' => $hidden_statuses } ) + ? ( + -and => { + status => { 'not in' => $hidden_statuses }, + status_alias => [ -or => + { 'not in' => $hidden_statuses }, + { '=' => undef } + ] + } + ) : (), $args->{borrowernumber} ? ( borrowernumber => $args->{borrowernumber} ) --