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


git-svn-id: svn://10.0.0.236/trunk@138030 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
justdave%syndicomm.com 2003-02-20 08:14:57 +00:00
parent 2097bdd5cb
commit e6c19fece5

View File

@ -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";