From: erickson Date: Thu, 30 Sep 2010 20:49:46 +0000 (+0000) Subject: fire the hold_request.cancel.staff when hold is cancelled by staff X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=25b5657c217a058c664b21d70f93c1064ef43b41;p=evergreen%2Fjoelewis.git fire the hold_request.cancel.staff when hold is cancelled by staff git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18110 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm index 174e28a466..2073ce2378 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; }