From 0c2b76185c8eca85bd0def8626b4beade535fcc6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 15 Aug 2023 13:11:51 +0100 Subject: [PATCH] Bug 24401: (QA follow-up) Remove $c->validation --- Koha/REST/V1/Checkouts.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/REST/V1/Checkouts.pm b/Koha/REST/V1/Checkouts.pm index 8ac46fe909..fdb6031dcc 100644 --- a/Koha/REST/V1/Checkouts.pm +++ b/Koha/REST/V1/Checkouts.pm @@ -289,7 +289,7 @@ sub delete { my $c = shift->openapi->valid_input or return; - my $body = $c->validation->param('body'); + my $body = $c->req->json; my $item_id = $body->{item_id}; return try { @@ -307,7 +307,7 @@ sub delete { openapi => { error => "Item not checked out" } ); } - my $library_id = $c->validation->output->{library_id}; + my $library_id = $body->{library_id}; unless ($library_id) { $library_id = $checkout->patron->branchcode; } -- 2.41.0