LP2007591 Allow Last-Copy Delete to Create Hold Notices
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Feb 2023 16:02:49 +0000 (11:02 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 1 Mar 2023 16:57:15 +0000 (11:57 -0500)
commitd96c88c4b987aebb1d762357247dcb15d6ba9ed6
treeab83a31dedc32ce553ec925d32e2352589b233d5
parent211e864f0650f52868837aa0b84bb77b3549a177
LP2007591 Allow Last-Copy Delete to Create Hold Notices

Fixes an issue where attempting to create A/T events for recently
canceled holds fails becuase the cancel_time on the hold is the
pre-insert value of "now" instead of a valid date string.

Resolve the issue by fetching the post-insert copy of the hold, so it has
all of the correct in-database values, before passing the hold to A/T
for processing.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm