From c5cf44efe3007c55d9a8e194ddad8de437d457f4 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Sun, 10 Mar 2024 19:49:40 +0100 Subject: [PATCH] Bug 35826: Keep items on retry. --- C4/HoldsQueue.pm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index eefd6d162d..f703c64824 100644 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -516,17 +516,6 @@ RETRY: } } - # Remove any item which have no finite transport cost with respect to any of the hold requests. - for ( my $i = 0, my $i0 = 0 ; $i < $num_agents ; $i++ ) { - if ( !$candidate_agents[$i] ) { - splice @m, $i - $i0, 1; - splice @remaining_items, $i - $i0, 1; - $i0++; - } - } - - $num_agents = scalar(@remaining_items); - # Remove any hold request for which there is no finite transport cost item available. my $removed_something = 0; -- 2.39.2