From ff222adc4a6cb0349f7642d61bb63d2ff970607c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 13 Jul 2007 18:10:39 +0000 Subject: Bug 385415: Bugs marked as duplicate or moved to another installation always go to the RESOLVED state, even if the workflow has RESOLVED excluded from it (or if this bug status has been removed or renamed). Some major problems related to the workflow when upgrading or installing 3.1 are also fixed here - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editworkflow.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editworkflow.cgi') diff --git a/editworkflow.cgi b/editworkflow.cgi index ac914f76d..6aaed345e 100644 --- a/editworkflow.cgi +++ b/editworkflow.cgi @@ -100,7 +100,10 @@ elsif ($action eq 'update') { foreach my $new (@$statuses) { next if $old->id == $new->id; - if ($cgi->param('w_' . $old->id . '_' . $new->id)) { + # All transitions to 'duplicate_or_move_bug_status' must be valid. + if ($cgi->param('w_' . $old->id . '_' . $new->id) + || ($new->name eq Bugzilla->params->{'duplicate_or_move_bug_status'})) + { $sth_insert->execute($old->id, $new->id) unless defined $workflow->{$old->id}->{$new->id}; } -- cgit v1.2.3-24-g4f1b