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 <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit f30b6f668c)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Matt Blenkinsop 2025-07-16 18:45:54 +01:00 committed by Paul Derscheid
parent 78968f9436
commit 77864ff6d4
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -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 //= [];