cache the target weight for the entire hold targetting run, not just for this hold
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 13:45:13 +0000 (13:45 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 13:45:13 +0000 (13:45 +0000)
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

index ad9cbae..e18673f 100644 (file)
@@ -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 );