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:55:46 +0000 (11:55 -0500)
commita82a3dc67148d3315dd024f1170eb0f7bff7960f
tree6f8429331bf3e23e3413704453bc8c63ab2140bb
parent04b54357092f5fc5a47f12183675d99493641969
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