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

(-)a/admin/transport-cost-matrix.pl (-1 / +4 lines)
Lines 91-98 foreach my $branchfrom ( @branchloop ) { Link Here
91
                if ( my $cell = $cost_matrix->{$tocode}{$fromcode} ) {
91
                if ( my $cell = $cost_matrix->{$tocode}{$fromcode} ) {
92
                    $from_to_input_def{value} = $cell->{cost};
92
                    $from_to_input_def{value} = $cell->{cost};
93
                    $from_to_input_def{disabled} = 1 if $cell->{disable_transfer};
93
                    $from_to_input_def{disabled} = 1 if $cell->{disable_transfer};
94
                } else {
95
                    # matrix has been previously initialized, but a branch referenced here was created afterward.
96
                    $from_to_input_def{disabled} = 1;
94
                }
97
                }
95
            } else {
98
            } else {
99
                # First time initializing the matrix
96
                $from_to_input_def{disabled} = 1;
100
                $from_to_input_def{disabled} = 1;
97
            }
101
            }
98
        }
102
        }
99
- 

Return to bug 11531