From c7bd3f239b9331e98b6b4f9672bb7c9f474d04d4 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 30 Sep 2010 20:49:14 +0000 Subject: [PATCH] fire the hold_request.cancel.staff when hold is cancelled by staff git-svn-id: svn://svn.open-ils.org/ILS/trunk@18109 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm index 174e28a46..2073ce237 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm @@ -647,6 +647,10 @@ sub cancel_hold { delete_hold_copy_maps($self, $e, $hold->id); $e->commit; + + $U->create_events_for_hook('hold_request.cancel.staff', $hold, $hold->pickup_lib) + if $e->requestor->id != $hold->usr; + return 1; } -- 2.11.0