From 9612dd6bc5cc85670c877742df126b8c670e29da Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Thu, 8 May 2025 12:37:18 +0300 Subject: [PATCH 2/2] Bug 38356: (follow-up) Add code block to handle CURRENTISSUE message Package C4::SIP::ILS::Transaction::Checkout was missing block to handle new "CURRENTISSUE" message. This patch adds this block so tests should no longer fail. To test prove t/db_dependent/SIP/Message.t --- C4/SIP/ILS/Transaction/Checkout.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/SIP/ILS/Transaction/Checkout.pm b/C4/SIP/ILS/Transaction/Checkout.pm index b3e9a4d6d7..247ba86ca3 100644 --- a/C4/SIP/ILS/Transaction/Checkout.pm +++ b/C4/SIP/ILS/Transaction/Checkout.pm @@ -112,6 +112,10 @@ sub do_checkout { $self->screen_msg("This item was previously checked out by you"); $noerror = 0 if ($prevcheckout_block_checkout); last; + } elsif ( $confirmation eq 'CURRENTISSUE' ) { + $self->screen_msg("This item is currently checked out by you"); + $noerror = 0 if ($prevcheckout_block_checkout); + last; } elsif ( $confirmation eq 'ADDITIONAL_MATERIALS' ) { if ($allow_additional_materials_checkout) { my $item = Koha::Items->find( { barcode => $barcode } ); -- 2.34.1