From: senator Date: Tue, 21 Dec 2010 19:37:18 +0000 (+0000) Subject: Acq: Fix a bug where upon PO activation, lineitems in the order-ready state X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=355f559421858193bd090a11c7bf433dbe56d95b;p=evergreen%2Fmasslnc.git Acq: Fix a bug where upon PO activation, lineitems in the order-ready state would stay there, rather than progressing to the on-order state git-svn-id: svn://svn.open-ils.org/ILS/trunk@19030 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm index 33f3eecf75..6fd0bf00b0 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm @@ -2196,7 +2196,7 @@ sub activate_purchase_order_impl { my $query = [ { purchase_order => $po_id, - '-or' => [{state => 'pending-order'}, {state => 'new'}] + state => [qw/pending-order new order-ready/] }, {limit => 1} ];