From ff222adc4a6cb0349f7642d61bb63d2ff970607c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 13 Jul 2007 18:10:39 +0000 Subject: =?UTF-8?q?Bug=20385415:=20Bugs=20marked=20as=20duplicate=20or=20m?= =?UTF-8?q?oved=20to=20another=20installation=20always=20go=20to=20the=20R?= =?UTF-8?q?ESOLVED=20state,=20even=20if=20the=20workflow=20has=20RESOLVED?= =?UTF-8?q?=20excluded=20from=20it=20(or=20if=20this=20bug=20status=20has?= =?UTF-8?q?=20been=20removed=20or=20renamed).=20Some=20major=20problems=20?= =?UTF-8?q?related=20to=20the=20workflow=20when=20upgrading=20or=20install?= =?UTF-8?q?ing=203.1=20are=20also=20fixed=20here=20-=20Patch=20by=20Fr?= =?UTF-8?q?=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r?= =?UTF-8?q?/a=3Dmkanat?= 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.1