From 77864ff6d44dd6f89f0727ee567b56bbe2ea98a6 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 16 Jul 2025 18:45:54 +0100 Subject: [PATCH] Bug 40417: Remove 'validation' method We shouldn't use the ->validation method anymore as it isn't stable. We need to pass the params into the method accounting for any param changes made Test plan: 1) Apply the regression test patch and run the test 2) Test should fail 3) Apply this patch 4) Run test again 5) Test should pass Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi Signed-off-by: Lucas Gass (cherry picked from commit f30b6f668ce6981d482b19364f189a0a482b8386) Signed-off-by: Paul Derscheid --- Koha/REST/Plugin/Objects.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm index 59bede9a86..36f33cecea 100644 --- a/Koha/REST/Plugin/Objects.pm +++ b/Koha/REST/Plugin/Objects.pm @@ -156,7 +156,7 @@ controller, and thus shouldn't be called twice in it. 'objects.search_rs' => sub { my ( $c, $result_set, $query_fixers ) = @_; - my $args = $c->validation->output; + my $args = $c->req->params->to_hash; my $attributes = {}; $query_fixers //= [];