@@ -, +, @@ for fulfillment of the hold has likely changed. the hold is chosen at random. --- C4/HoldsQueue.pm | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) --- a/C4/HoldsQueue.pm +++ a/C4/HoldsQueue.pm @@ -570,14 +570,15 @@ 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"); - return \@branches_to_use; + @branches_to_use = shuffle keys %{GetBranches()} unless ( @branches_to_use ); + + return ( @branches_to_use ) ? \@branches_to_use : undef; } sub least_cost_branch { --