From 874cc7bf6431c113d4f9e37457e5b1ad8e5760de 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. Signed-off-by: Sam Lau --- 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