diff options
author | 2007-07-28 05:54:36 +0000 | |
---|---|---|
committer | 2007-07-28 05:54:36 +0000 | |
commit | 737535fcbcfd91d7c15eab2f43386333af113797 (patch) | |
tree | 11f720ceb06a1774840735eb9dc602b47252b97a /process_bug.cgi | |
parent | Reverting previous whitespace change to test fix for cvs hook on server (diff) | |
download | bugzilla-737535fcbcfd91d7c15eab2f43386333af113797.tar.gz bugzilla-737535fcbcfd91d7c15eab2f43386333af113797.tar.bz2 bugzilla-737535fcbcfd91d7c15eab2f43386333af113797.zip |
Bug 389835: Various issues when changing several bugs at once - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |