Bug 37687: Restore -not_in operator
Test plan:
1) Compare the API documentation on query parameters and note that'-not_in' is listed as a valid operator.
2) Look at the patch diff - you will see that previously '-not_in' was not included in the list and now is
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7c3c36f2bb)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
242b345311
commit
613e8137e6
|
|
@ -512,7 +512,7 @@ sub _validate_operator {
|
|||
my ($operator) = @_;
|
||||
my %allowed_operators =
|
||||
map { $_ => 1 }
|
||||
qw(= != < > <= >= -in -ident -bool -not_bool -or like -like -not_like -between -not_between -not -and -regexp);
|
||||
qw(= != < > <= >= -in -ident -bool -not_bool -or like -like -not_like -between -not_between -not -and -regexp -not_in);
|
||||
Koha::Exceptions::REST::Query::InvalidOperator->throw( operator => $operator )
|
||||
unless exists $allowed_operators{$operator};
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue