summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2011-05-24 09:32:23 +0200
committerByron Jones <bjones@mozilla.com>2011-05-24 09:32:23 +0200
commitcf2298c98a9aca3b5fe79d5af4085d631aee200e (patch)
treebdee9ccbb04fc01a21055efe96be857b26dc9015
parentdf2d2daab9a4c9e6675abbef2eadc6123b4d5e82 (diff)
downloadbugzilla-cf2298c98a9aca3b5fe79d5af4085d631aee200e.tar.gz
bugzilla-cf2298c98a9aca3b5fe79d5af4085d631aee200e.tar.xz
Bug 655210: Allows custom bug creation formats to specify a "created" format
r=dkl, a=LpSolit
-rwxr-xr-xpost_bug.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 734b5978d..e6b77f8ea 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -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;