LP2007591 Allow Last-Copy Delete to Create Hold Notices user/berick/lp2007591-last-copy-hold-cancel-notice
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Feb 2023 16:02:49 +0000 (11:02 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 16 Feb 2023 16:09:59 +0000 (11:09 -0500)
commitd05c2a8d2ec3c7e813469787b2618d8c4a2462f2
treec11b64ebf281d9733463b539464c8f766b32ad73
parent217a524a21c045b551878420124f0e8a2736f88b
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm