From 5da94c5431fdb0a359914ee33e93137f3f7e0af0 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Thu, 20 Feb 2003 16:14:57 +0000 Subject: 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 --- move.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'move.pl') 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 # Terry Weissman +# Dave Miller 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"; -- cgit v1.2.3-24-g4f1b