diff options
author | lpsolit%gmail.com <> | 2008-02-26 06:05:21 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-02-26 06:05:21 +0000 |
commit | a45549418844d31b8066ad365517c43c554580b9 (patch) | |
tree | 96e714490d06b05e0a98c9ccf7b0879ee0b75708 /process_bug.cgi | |
parent | f0dab615aa5a5dea7b6d8c53e333b8072d781d57 (diff) | |
download | bugs-a45549418844d31b8066ad365517c43c554580b9.tar bugs-a45549418844d31b8066ad365517c43c554580b9.tar.gz bugs-a45549418844d31b8066ad365517c43c554580b9.tar.bz2 bugs-a45549418844d31b8066ad365517c43c554580b9.tar.xz bugs-a45549418844d31b8066ad365517c43c554580b9.zip |
Bug 419243: get_new_status_and_resolution() no longer exists and bug moving fails - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 93b2ec1ff..277cbb0fd 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -428,22 +428,15 @@ if ($move_action eq Bugzilla->params->{'move-button-text'}) { # First update all moved bugs. foreach my $bug (@bug_objects) { - $bug->add_comment(scalar $cgi->param('comment'), - { type => CMT_MOVED_TO, extra_data => $user->login }); + $bug->add_comment('', { type => CMT_MOVED_TO, extra_data => $user->login }); } # Don't export the new status and resolution. We want the current ones. local $Storable::forgive_me = 1; my $bugs = dclone(\@bug_objects); + + my $new_status = Bugzilla->params->{'duplicate_or_move_bug_status'}; foreach my $bug (@bug_objects) { - my ($status, $resolution) = $bug->get_new_status_and_resolution('move'); - $bug->set_status($status); - # We don't use set_resolution here because the MOVED resolution is - # special and is normally rejected by set_resolution. - $bug->{resolution} = $resolution; - # That means that we need to clear dups manually. Eventually this - # bug-moving code will all be inside Bugzilla::Bug, so it's OK - # to call an internal function here. - $bug->_clear_dup_id; + $bug->set_status($new_status, {resolution => 'MOVED', moving => 1}); } $_->update() foreach @bug_objects; $dbh->bz_commit_transaction(); |