]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 194172: move.pl was sending empty bugs because of failure to initialize the field...
authorjustdave%syndicomm.com <>
Thu, 20 Feb 2003 16:14:57 +0000 (16:14 +0000)
committerjustdave%syndicomm.com <>
Thu, 20 Feb 2003 16:14:57 +0000 (16:14 +0000)
r= gerv, a= justdave

move.pl

diff --git a/move.pl b/move.pl
index f1777c8fef1965fa3ecb4fc41aaa0807f24d3654..ab0794243dbd2ee26b8d8ada8463387e958d5c0d 100755 (executable)
--- a/move.pl
+++ b/move.pl
@@ -20,6 +20,7 @@
 #
 # Contributor(s): Dawn Endico    <endico@mozilla.org>
 #                 Terry Weissman <terry@mozilla.org>
+#                 Dave Miller    <justdave@netscape.com>
 
 use strict;
 
@@ -150,7 +151,16 @@ $from =~ s/@/\@/;
 $msg .= "From: Bugzilla <" . $from . ">\n";
 $msg .= "Subject: Moving bug(s) $buglist\n\n";
 
-$template->process("bug/show.xml.tmpl", { user => { login => $exporter }, bugs => \@bugs }, \$msg)
+my @fieldlist = (Bug::fields(), 'group', 'long_desc', 'attachment');
+my %displayfields;
+foreach (@fieldlist) {
+    $displayfields{$_} = 1;
+}
+
+$template->process("bug/show.xml.tmpl", { user => { login => $exporter },
+                                          bugs => \@bugs,
+                                          displayfields => \%displayfields,
+                                        }, \$msg)
   || ThrowTemplateError($template->error());
 
 $msg .= "\n";