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:56:26 +0000 (11:56 -0500)
commit6b007959eec3116356d33c3a9cf1dc6cd052c229
tree9df60e4799fc971f4cd0cc12c19ee250d2b2688b
parent4e891f2233bde5b0626fcd99434ab91c9d369a80
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