MR targeting thinko
authorBill Erickson <berick@esilibrary.com>
Mon, 3 Feb 2014 22:51:45 +0000 (17:51 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 3 Feb 2014 22:51:45 +0000 (17:51 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index 373713a..a897126 100644 (file)
@@ -1458,14 +1458,14 @@ sub new_hold_copy_targeter {
 
             # find all the potential copies
             if ($hold->hold_type eq 'M') {
-                for my $r (
+                for my $r_id (
                     $self->method_lookup(
                         'open-ils.storage.metarecord.filtered_records'
                     )->run( $hold->target, $hold->holdable_formats )
                 ) {
                     my ($rtree) = $self
                         ->method_lookup( 'open-ils.storage.biblio.record_entry.ranged_tree')
-                        ->run( $r->id, $hold->selection_ou, $hold->selection_depth );
+                        ->run( $r_id, $hold->selection_ou, $hold->selection_depth );
 
                     for my $cn ( @{ $rtree->call_numbers } ) {
                         push @$all_copies,