From: Bill Erickson Date: Mon, 3 Feb 2014 22:51:45 +0000 (-0500) Subject: MR targeting thinko X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fab05ca4b624c55f46e824caf27ffd2fe415c090;p=working%2FEvergreen.git MR targeting thinko Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm index 373713ab85..a897126a39 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm @@ -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,