Bugzilla – Attachment 154430 Details for
Bug 24401
REST API: Check-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24401: (QA follow-up) Remove $c->validation
Bug-24401-QA-follow-up-Remove-c-validation.patch (text/plain), 1.04 KB, created by
Martin Renvoize (ashimema)
on 2023-08-15 12:17:26 UTC
(
hide
)
Description:
Bug 24401: (QA follow-up) Remove $c->validation
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-08-15 12:17:26 UTC
Size:
1.04 KB
patch
obsolete
>From 0c2b76185c8eca85bd0def8626b4beade535fcc6 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24401
:
151109
|
151181
|
151182
|
151183
|
151184
|
152717
|
154428
|
154429
|
154430
|
154431
|
156884
|
156885
|
168337
|
172764
|
173189
|
173194