[open-ils-commits] [GIT] Evergreen ILS branch master updated. fb2229781b11f34508713a6cd36162aa85654b93

Evergreen Git git at git.evergreen-ils.org
Wed Dec 14 15:10:00 EST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  fb2229781b11f34508713a6cd36162aa85654b93 (commit)
      from  b2255089e3f4431c314e7b83a3c851af023443bd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fb2229781b11f34508713a6cd36162aa85654b93
Author: Bill Erickson <berick at esilibrary.com>
Date:   Tue Dec 13 14:32:45 2011 -0500

    Clear hold shelf/shelf_expire time for pickup lib change
    
    If a hold is on the holds shelf and the pickup library changes, clear
    the shelf_time and shelf_expire_time, since the hold is now in transit.
    
    This is particularly important for avoiding action_trigger events for
    the "hold_request.shelf_expires_soon" hook for what is now an
    in-transit item.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index 9e33de5..0a6bdfc 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -961,6 +961,10 @@ sub update_hold_impl {
             # create the new transit
             my $evt = transit_hold($e, $orig_hold, $hold, $e->retrieve_asset_copy($hold->current_copy));
             return $evt if $evt;
+
+            # hold is leaving the shelf  
+            $hold->clear_shelf_time;
+            $hold->clear_shelf_expire_time;
         }
     } 
 

-----------------------------------------------------------------------

Summary of changes:
 .../perlmods/lib/OpenILS/Application/Circ/Holds.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list