88
# Part 1: Initial bug statuses.
88
# Part 1: Initial bug statuses.
89
foreach my $new (@$statuses) {
89
foreach my $new (@$statuses) {
90
if ($cgi->param('w_0_' . $new->id)) {
90
if ($new->is_open && $cgi->param('w_0_' . $new->id)) {
91
$sth_insert->execute(undef, $new->id)
91
$sth_insert->execute(undef, $new->id)
92
unless defined $workflow->{0}->{$new->id};
92
unless defined $workflow->{0}->{$new->id};
69
[% FOREACH new_status = statuses %]
69
[% FOREACH new_status = statuses %]
70
[% IF status.id != new_status.id %]
70
[% IF status.id != new_status.id && (status.id || new_status.is_open) %]
71
[% checked = workflow.${status.id}.${new_status.id}.defined ? 1 : 0 %]
71
[% checked = workflow.${status.id}.${new_status.id}.defined ? 1 : 0 %]
72
[% mandatory = (status.id && new_status.name == Param("duplicate_or_move_bug_status")) ? 1 : 0 %]
72
[% mandatory = (status.id && new_status.name == Param("duplicate_or_move_bug_status")) ? 1 : 0 %]
73
<td align="center" class="checkbox-cell[% " checked" IF checked || mandatory %]"
73
<td align="center" class="checkbox-cell[% " checked" IF checked || mandatory %]"