diff options
author | justdave%syndicomm.com <> | 2003-02-20 17:14:57 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-02-20 17:14:57 +0100 |
commit | 5da94c5431fdb0a359914ee33e93137f3f7e0af0 (patch) | |
tree | e5993716c1e2e3fbe3813982bccfeb57d2db99a8 | |
parent | 1985514e57cc05f9a3acf140c56cda6cfb226925 (diff) | |
download | bugzilla-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-x | move.pl | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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"; |