From f18227214c1f1a3836c4e54e6200a2f717b7f13f Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Wed, 5 Jun 2024 14:20:22 +0100
Subject: [PATCH] Bug 37018: Use validation in search_rs helper

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 Koha/REST/Plugin/Objects.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm
index 7f06582b4dd..96c4fcaeffd 100644
--- a/Koha/REST/Plugin/Objects.pm
+++ b/Koha/REST/Plugin/Objects.pm
@@ -295,6 +295,8 @@ controller, and thus shouldn't be called twice in it.
                 }
             );
 
+            $c->dbic_validate_operators( { filtered_params => $filtered_params } );
+
             # Generate the resultset
             my $objects_rs = $result_set->search( $filtered_params, $attributes );
             # Stash the page total if requires, total otherwise
-- 
2.45.2