Commit b446f4e4 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 442821: Make the workflow editor deny closed statuses for new bugs

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent f1f87e08
......@@ -87,7 +87,7 @@ elsif ($action eq 'update') {
# Part 1: Initial bug statuses.
foreach my $new (@$statuses) {
if ($cgi->param('w_0_' . $new->id)) {
if ($new->is_open && $cgi->param('w_0_' . $new->id)) {
$sth_insert->execute(undef, $new->id)
unless defined $workflow->{0}->{$new->id};
}
......
......@@ -67,7 +67,7 @@
</th>
[% FOREACH new_status = statuses %]
[% IF status.id != new_status.id %]
[% IF status.id != new_status.id && (status.id || new_status.is_open) %]
[% checked = workflow.${status.id}.${new_status.id}.defined ? 1 : 0 %]
[% mandatory = (status.id && new_status.name == Param("duplicate_or_move_bug_status")) ? 1 : 0 %]
<td align="center" class="checkbox-cell[% " checked" IF checked || mandatory %]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment