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

(-)a/C4/HoldsQueue.pm (-4 / +4 lines)
Lines 570-583 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
580
    return \@branches_to_use;
579
    @branches_to_use = shuffle keys %{GetBranches()} unless ( @branches_to_use );
580
    
581
    return ( @branches_to_use ) ? \@branches_to_use : undef;
581
}
582
}
582
583
583
sub least_cost_branch {
584
sub least_cost_branch {
584
- 

Return to bug 8562