From 30a7de016d94d2eb295b4bed4a5c9594c6763deb Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 18 Sep 2009 13:45:13 +0000 Subject: [PATCH] cache the target weight for the entire hold targetting run, not just for this hold git-svn-id: svn://svn.open-ils.org/ILS/trunk@14046 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index ad9cbae1a2..e18673f48c 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -808,6 +808,8 @@ sub new_hold_copy_targeter { local $OpenILS::Application::Storage::WRITE = 1; + $self->{target_weight} = {}; + my $holds; try { @@ -1126,7 +1128,6 @@ sub new_hold_copy_targeter { } } - $self->{target_weight} = {}; $prox_list = create_prox_list( $self, $hold->pickup_lib, $all_copies ); $client->status( new OpenSRF::DomainObject::oilsContinueStatus ); -- 2.11.0