Bug 655210: Allows custom bug creation formats to specify a "created" format

r=dkl, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@262341 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2011-05-24 07:48:19 +00:00
parent ea9684e90d
commit 963d886308
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
7824
7825

View File

@ -256,8 +256,11 @@ foreach my $dep (@{$bug->dependson || []}, @{$bug->blocked || []}) {
}
$vars->{sentmail} = \@all_mail_results;
$format = $template->get_format("bug/create/created",
scalar($cgi->param('created-format')),
"html");
print $cgi->header();
$template->process("bug/create/created.html.tmpl", $vars)
$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());
1;