From dc3b8a3f11962a3c15ef76b6eec98846b194a37c Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Wed, 12 Jun 2024 18:26:25 +0000 Subject: [PATCH] Bug 37018: (follow-up) adding a warning bad operatord are removed from the query --- Koha/REST/Plugin/Query.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/REST/Plugin/Query.pm b/Koha/REST/Plugin/Query.pm index a091ad0ca1..c040d96e35 100644 --- a/Koha/REST/Plugin/Query.pm +++ b/Koha/REST/Plugin/Query.pm @@ -212,7 +212,7 @@ Validate operators in the passed query. } ); -=head3 dbic_validate_operators +=head3 dbic_remove_invalid_operators $filtered_params = $c->dbic_remove_invalid_operators({ filtered_params => $filtered_params}); @@ -226,6 +226,7 @@ $app->helper( my @invalid_operators = _get_invalid_operators( $args->{filtered_params} ); my %badoperators = map { $_ => 1 } @invalid_operators; my $filtered_params = _remove_invalid_operators( $args->{filtered_params}, %badoperators ); + warn "bad operators removed from the query"; return $filtered_params; } ); -- 2.34.1