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

(-)a/Koha/REST/Plugin/Query.pm (-2 / +2 lines)
Lines 663-669 sub _rewrite_related_metadata_query { Link Here
663
663
664
sub _validate_operator {
664
sub _validate_operator {
665
    my ($operator) = @_;
665
    my ($operator) = @_;
666
    my %allowed_operators = map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or);
666
    my %allowed_operators =
667
        map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or -like -not -and -regexp);
667
    Koha::Exceptions::REST::Query::InvalidOperator->throw( operator => $operator )
668
    Koha::Exceptions::REST::Query::InvalidOperator->throw( operator => $operator )
668
        unless exists $allowed_operators{$operator};
669
        unless exists $allowed_operators{$operator};
669
    return;
670
    return;
670
- 

Return to bug 37018