[open-ils-commits] r12921 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 20 14:33:01 EDT 2009
Author: erickson
Date: 2009-04-20 14:32:57 -0400 (Mon, 20 Apr 2009)
New Revision: 12921
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
Log:
fetch lineitems in substream since they are so large
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2009-04-20 18:03:25 UTC (rev 12920)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2009-04-20 18:32:57 UTC (rev 12921)
@@ -613,13 +613,13 @@
$picklist = $mgr->editor->retrieve_acq_picklist($picklist) unless ref $picklist;
# delete all 'new' lineitems
- my $lis = $mgr->editor->search_acq_lineitem({picklist => $picklist->id, state => 'new'});
+ my $lis = $mgr->editor->search_acq_lineitem({picklist => $picklist->id, state => 'new'}, {substream => 1});
for my $li (@$lis) {
return 0 unless delete_lineitem($mgr, $li);
}
# detach all non-'new' lineitems
- $lis = $mgr->editor->search_acq_lineitem({picklist => $picklist->id, state => {'!=' => 'new'}});
+ $lis = $mgr->editor->search_acq_lineitem({picklist => $picklist->id, state => {'!=' => 'new'}, {substream => 1}});
for my $li (@$lis) {
$li->clear_picklist;
return 0 unless update_lineitem($mgr, $li);
More information about the open-ils-commits
mailing list