summaryrefslogtreecommitdiffstats
path: root/move.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2002-02-06 13:34:10 +0100
committerjustdave%syndicomm.com <>2002-02-06 13:34:10 +0100
commit2da47954b2518c7340c42d675fe2572b815b0865 (patch)
tree9082f106c61e6de1892f2285812f0834072d02d4 /move.pl
parentd4750d0cc42ea4cbdd592e165cbb1efe5d5264fb (diff)
downloadbugzilla-2da47954b2518c7340c42d675fe2572b815b0865.tar.gz
bugzilla-2da47954b2518c7340c42d675fe2572b815b0865.tar.xz
Fix for bug 122897: Comments entered on the bug form are now added to the bug before it is closed and moved when moving a bug
to another Bugzilla install. Patch by Dave Miller <justdave@syndicomm.com> r= timeless, bbaetz
Diffstat (limited to 'move.pl')
-rwxr-xr-xmove.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/move.pl b/move.pl
index e82678d44..36b83a5fa 100755
--- a/move.pl
+++ b/move.pl
@@ -121,7 +121,11 @@ foreach my $id (split(/:/, $::FORM{'buglist'})) {
SendSQL("UPDATE bugs SET bug_status =\"RESOLVED\" where bug_id=\"$id\"");
SendSQL("UPDATE bugs SET resolution =\"MOVED\" where bug_id=\"$id\"");
- my $comment = "Bug moved to " . Param("move-to-url") . ".\n\n";
+ my $comment = "";
+ if (defined $::FORM{'comment'} && $::FORM{'comment'} !~ /^\s*$/) {
+ $comment .= $::FORM{'comment'} . "\n\n";
+ }
+ $comment .= "Bug moved to " . Param("move-to-url") . ".\n\n";
$comment .= "If the move succeeded, $exporter will receive a mail\n";
$comment .= "containing the number of the new bug in the other database.\n";
$comment .= "If all went well, please mark this bug verified, and paste\n";