From 2b667a337f6862b50f3123b900621782397101e8 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 25 May 2023 19:32:35 +0000 Subject: [PATCH] Bug 33794: Removing line that causes TCM to pick the most expensive item if it means that it's going back to it's home branch. --- C4/HoldsQueue.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 4884f6570e..50feb8da6f 100644 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -596,7 +596,6 @@ sub MapItemsToHoldRequests { my $holding_branch_items = $items_by_branch{$holdingbranch}; foreach my $item (@$holding_branch_items) { - next if $request->{borrowerbranch} ne $item->{$priority_branch}; next unless $items_by_itemnumber{ $item->{itemnumber} }->{_object}->can_be_transferred( { to => $libraries->{ $request->{branchcode} } } ); # Don't fill item level holds that contravene the hold pickup policy at this time -- 2.30.2