From 2382eaff2872ac06d4ff9df40e6ec31b0bbac2a5 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. Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- C4/HoldsQueue.pm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 65d7d5a507..10f4509166 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.5