From 9bdfe4e36ede90a1432d410015671388e4e132a5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 9 Feb 2023 14:56:01 -0500 Subject: [PATCH] Bug 32934: Correctly honor the no block due date for SIP checkout messages --- C4/Circulation.pm | 4 ++-- C4/SIP/ILS/Transaction/Checkout.pm | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 5255c69e26b..a355ddff5a5 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -4087,8 +4087,8 @@ sub ProcessOfflineIssue { } AddIssue( $patron->unblessed, - $operation->{'barcode'}, - undef, + $operation->{barcode}, + $operation->{due_date}, undef, $operation->{timestamp}, undef, diff --git a/C4/SIP/ILS/Transaction/Checkout.pm b/C4/SIP/ILS/Transaction/Checkout.pm index d9056f1c824..60b60bfbd35 100644 --- a/C4/SIP/ILS/Transaction/Checkout.pm +++ b/C4/SIP/ILS/Transaction/Checkout.pm @@ -137,7 +137,8 @@ sub do_checkout { ProcessOfflineIssue({ cardnumber => $patron->cardnumber, barcode => $barcode, - timestamp => $no_block_due_date, + due_date => $no_block_due_date, + timestamp => dt_from_string, }); } else { # can issue -- 2.39.1