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

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

Return to bug 28510