summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-02-20 17:14:57 +0100
committerjustdave%syndicomm.com <>2003-02-20 17:14:57 +0100
commit5da94c5431fdb0a359914ee33e93137f3f7e0af0 (patch)
treee5993716c1e2e3fbe3813982bccfeb57d2db99a8
parent1985514e57cc05f9a3acf140c56cda6cfb226925 (diff)
downloadbugzilla-5da94c5431fdb0a359914ee33e93137f3f7e0af0.tar.gz
bugzilla-5da94c5431fdb0a359914ee33e93137f3f7e0af0.tar.xz
Bug 194172: move.pl was sending empty bugs because of failure to initialize the field list for the new "XML Summary" mode.
r= gerv, a= justdave
-rwxr-xr-xmove.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/move.pl b/move.pl
index f1777c8fe..ab0794243 100755
--- 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";