@@ -, +, @@ for fulfillment of the hold has likely changed. the hold is chosen at random. --- C4/HoldsQueue.pm | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) --- a/C4/HoldsQueue.pm +++ a/C4/HoldsQueue.pm @@ -570,13 +570,14 @@ sub _trim { } sub load_branches_to_pull_from { - my $static_branch_list = C4::Context->preference("StaticHoldsQueueWeight") - or return; + my $static_branch_list = C4::Context->preference("StaticHoldsQueueWeight"); my @branches_to_use = map _trim($_), split /,/, $static_branch_list; @branches_to_use = shuffle(@branches_to_use) if C4::Context->preference("RandomizeHoldsQueueWeight"); + @branches_to_use = shuffle keys %{GetBranches()}; + return \@branches_to_use; } --