From 737535fcbcfd91d7c15eab2f43386333af113797 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 28 Jul 2007 05:54:36 +0000 Subject: Bug 389835: Various issues when changing several bugs at once - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process_bug.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index f8b5201b3..14d6c4ce7 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -814,8 +814,11 @@ my $knob = scalar $cgi->param('knob'); # Special actions (duplicate, change_resolution and clearresolution) are outside # the workflow. if (!grep { $knob eq $_ } SPECIAL_STATUS_WORKFLOW_ACTIONS) { - Bugzilla::Bug->check_status_transition($knob, \@idlist); + # Make sure the bug status exists and is active. + check_field('bug_status', $knob); my $bug_status = new Bugzilla::Status({name => $knob}); + $_->check_status_transition($bug_status) foreach @bug_objects; + # Fill the resolution field with the correct value (e.g. in case the # workflow allows several open -> closed transitions). if ($bug_status->is_open) { -- cgit v1.2.3-24-g4f1b