RSS

trunk : 6121

mkanat%bugzilla.org
2008-07-02 19:10:17
Revision ID: cvs-1:mkanatbugzilla.org-20080703001017-9zde1j7cc54rw0zz
Bug 442821: Make the workflow editor deny closed statuses for new bugs Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

collapse all collapse all

added added

removed removed

87
 
87
 
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};
93
        }
93
        }
67
      </th>
67
      </th>
68
 
68
 
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 %]"

Loggerhead runs on Bazaar branches