From ac91d15a7d766d9078dcc311fdb5019e65f0442b Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Fri, 29 Aug 2025 12:46:10 +0000 Subject: [PATCH] Bug 39204: Added ability to cancel item-level holds via SIP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: 1. /kohadevbox/koha/misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m hold --patron 23529000035676 --item 39999000001310 --hold-mode + 2. /kohadevbox/koha/misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m hold --patron 23529000035676 --item 39999000001310 --hold-mode - 3. See the error: 1. AFError with transaction drop_hold: 4. Apply the patch & restart_all 5. Try step 2 again. See confirmation: 1. AFHold Cancelled. 6. prove t/db_dependent/Koha/Hold.t 7. Sign off — have an amazing day! Signed-off-by: Brendan Lawlor --- C4/SIP/ILS/Transaction/Hold.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Transaction/Hold.pm b/C4/SIP/ILS/Transaction/Hold.pm index f2aeaff8db..1a8b7a5347 100644 --- a/C4/SIP/ILS/Transaction/Hold.pm +++ b/C4/SIP/ILS/Transaction/Hold.pm @@ -69,7 +69,8 @@ sub do_hold { priority => $priority, branchcode => $branch, borrowernumber => $patron->borrowernumber, - biblionumber => $item->biblionumber + biblionumber => $item->biblionumber, + itemnumber => $item->itemnumber } ); -- 2.39.5