From: justdave%syndicomm.com <> Date: Thu, 20 Feb 2003 16:14:57 +0000 (+0000) Subject: Bug 194172: move.pl was sending empty bugs because of failure to initialize the field... X-Git-Tag: bugzilla-2.17.4~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da94c5431fdb0a359914ee33e93137f3f7e0af0;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/move.pl b/move.pl index f1777c8fef..ab0794243d 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";