From: senator Date: Tue, 21 Dec 2010 19:37:57 +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=20a54726b3f462126e09779e70417eb0947ba529;p=evergreen%2Fequinox.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/branches/rel_2_0@19031 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 d564d05226..5b2f12c701 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm @@ -2197,7 +2197,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} ];