]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 655210: Allows custom bug creation formats to specify a "created" format
authorByron Jones <bjones@mozilla.com>
Tue, 24 May 2011 07:32:23 +0000 (15:32 +0800)
committerByron Jones <bjones@mozilla.com>
Tue, 24 May 2011 07:32:23 +0000 (15:32 +0800)
r=dkl, a=LpSolit

post_bug.cgi

index 734b5978dee4703547ec828041b5f20782d0ff5c..e6b77f8eafce89e20a1787a8068ccd3148f6e71a 100755 (executable)
@@ -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;