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

(-)a/C4/HoldsQueue.pm (-7 / +9 lines)
Lines 196-204 sub CreateQueue { Link Here
196
            undef $transport_cost_matrix;
196
            undef $transport_cost_matrix;
197
        }
197
        }
198
    }
198
    }
199
    unless ($transport_cost_matrix) {
199
200
        $branches_to_use = load_branches_to_pull_from();
200
    $branches_to_use = load_branches_to_pull_from($use_transport_cost_matrix);
201
    }
202
201
203
    my $bibs_with_pending_requests = GetBibsWithPendingHoldRequests();
202
    my $bibs_with_pending_requests = GetBibsWithPendingHoldRequests();
204
203
Lines 781-791 sub _trim { Link Here
781
}
780
}
782
781
783
sub load_branches_to_pull_from {
782
sub load_branches_to_pull_from {
783
    my $use_transport_cost_matrix = shift;
784
784
    my @branches_to_use;
785
    my @branches_to_use;
785
786
786
    my $static_branch_list = C4::Context->preference("StaticHoldsQueueWeight");
787
    unless ( $use_transport_cost_matrix ) {
787
    @branches_to_use = map { _trim($_) } split( /,/, $static_branch_list )
788
        my $static_branch_list = C4::Context->preference("StaticHoldsQueueWeight");
788
      if $static_branch_list;
789
        @branches_to_use = map { _trim($_) } split( /,/, $static_branch_list )
790
          if $static_branch_list;
791
    }
789
792
790
    @branches_to_use =
793
    @branches_to_use =
791
      Koha::Database->new()->schema()->resultset('Branch')
794
      Koha::Database->new()->schema()->resultset('Branch')
792
- 

Return to bug 28510