View | Details | Raw Unified | Return to bug 24401
Collapse All | Expand All

(-)a/Koha/REST/V1/Checkouts.pm (-3 / +2 lines)
Lines 289-295 sub delete { Link Here
289
289
290
    my $c = shift->openapi->valid_input or return;
290
    my $c = shift->openapi->valid_input or return;
291
291
292
    my $body    = $c->validation->param('body');
292
    my $body    = $c->req->json;
293
    my $item_id = $body->{item_id};
293
    my $item_id = $body->{item_id};
294
294
295
    return try {
295
    return try {
Lines 307-313 sub delete { Link Here
307
                openapi => { error => "Item not checked out" }
307
                openapi => { error => "Item not checked out" }
308
            );
308
            );
309
        }
309
        }
310
        my $library_id = $c->validation->output->{library_id};
310
        my $library_id = $body->{library_id};
311
        unless ($library_id) {
311
        unless ($library_id) {
312
            $library_id = $checkout->patron->branchcode;
312
            $library_id = $checkout->patron->branchcode;
313
        }
313
        }
314
- 

Return to bug 24401