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

Evergreen Git git at git.evergreen-ils.org
Tue Aug 9 14:48:59 EDT 2016


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  983e8f9cf1bbc69fd8a134b987cdc87e4fc8e406 (commit)
      from  4754c39358e43e0f2e65680f36c3371d89bc9e3d (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 983e8f9cf1bbc69fd8a134b987cdc87e4fc8e406
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Thu Oct 8 09:39:34 2015 -0400

    LP 1503867: Use ws_ou in open-ils.circ.copy_transit.receive.
    
    After putting NCIPServer into production, we discovered that a staff
    user cannot receive a transit destined for their work org. unit if
    the actor.usr.home_ou is not the same as their current work_ou.
    This occurred because transit_receive in OpenILS::Application::
    Circ::Transit uses the requestor's home_ou and not the ws_ou.
    
    If you want to trigger this bug, write a little script to receive
    transits, then login with a staff account at a location other than
    their home_ou and try to receive a transit destined for the work_ou.
    It will fail.
    
    This small commit replaces home_ou in two places with ws_ou in order
    to make the above work.
    
    NOTE: This bug affects an API call not used in Evergreen except in
    one test script.  It used in two ILL add-ons for Evergreen: issa and
    NCIPServer.  Receiving transits by checking copies in via the staff
    client, the typical workflow, is not affected by this bug or its fix.
    
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm
index bd687c4..2207438 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm
@@ -69,10 +69,10 @@ sub transit_receive {
     ($transit, $evt) = $U->fetch_open_transit_by_copy($copyid);
     return $evt if $evt;
 
-    if( $transit->dest != $requestor->home_ou ) {
+    if( $transit->dest != $requestor->ws_ou ) {
         $logger->activity("Fowarding transit on copy which is destined ".
             "for a different location. copy=$copyid,current ".
-            "location=".$requestor->home_ou.",destination location=".$transit->dest);
+            "location=".$requestor->ws_ou.",destination location=".$transit->dest);
 
         return OpenILS::Event->new('ROUTE_ITEM', org => $transit->dest );
     }

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list