View | Details | Raw Unified | Return to bug 8562
Collapse All | Expand All

(-)a/C4/HoldsQueue.pm (-3 / +3 lines)
Lines 570-582 sub _trim { Link Here
570
}
570
}
571
571
572
sub load_branches_to_pull_from {
572
sub load_branches_to_pull_from {
573
    my $static_branch_list = C4::Context->preference("StaticHoldsQueueWeight")
573
    my $static_branch_list = C4::Context->preference("StaticHoldsQueueWeight");
574
      or return;
575
574
576
    my @branches_to_use = map _trim($_), split /,/, $static_branch_list;
575
    my @branches_to_use = map _trim($_), split /,/, $static_branch_list;
577
576
578
    @branches_to_use = shuffle(@branches_to_use) if  C4::Context->preference("RandomizeHoldsQueueWeight");
577
    @branches_to_use = shuffle(@branches_to_use) if  C4::Context->preference("RandomizeHoldsQueueWeight");
579
578
579
    @branches_to_use = shuffle keys %{GetBranches()};
580
    
580
    return \@branches_to_use;
581
    return \@branches_to_use;
581
}
582
}
582
583
583
- 

Return to bug 8562