[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 5f62d8b337f0e6937967b10a8926377ad1a8c52a

Evergreen Git git at git.evergreen-ils.org
Thu Aug 30 12:01:04 EDT 2012


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, rel_2_2 has been updated
       via  5f62d8b337f0e6937967b10a8926377ad1a8c52a (commit)
      from  23bb2a43464704a13db9b5b37201a716588e2e5f (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 5f62d8b337f0e6937967b10a8926377ad1a8c52a
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Tue Aug 28 16:09:00 2012 -0400

    Acq: New lineitems added to existing POs should inherit provider
    
    Jeremy Miller of the Albany Public Library in Albany, OR, reports that
    through the interface at
        Actions For This Record -> View/Place Orders
    in the staff client, when you add a lineitem to an existing PO, the new
    lineitem has a null value in the "provider" field, instead of inheriting
    the expected value from the PO.
    
    This causes problems for some Acquisitions workflows.
    
    The feature containing the bug appeared in 2.2, and this fix for it can be
    backported that far.
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
index 8328134..e5c7e54 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
@@ -3416,6 +3416,7 @@ sub add_li_to_po {
         return {success => 0, li => $li, error => 'bad-li-state'};
     }
 
+    $li->provider($po->provider);
     $li->purchase_order($po_id);
     $li->state('pending-order');
     update_lineitem($mgr, $li) or return $e->die_event;

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list