summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-29 07:05:31 +0200
committergerv%gerv.net <>2002-04-29 07:05:31 +0200
commitb84667020e4ae64f0a9c9a374999f1e97060a133 (patch)
tree3d1101d068fc3041cbcd3133e1a703b5cac3fb97 /post_bug.cgi
parent7bb05f06fa763bf360b14045f79d491102a0f501 (diff)
downloadbugzilla-b84667020e4ae64f0a9c9a374999f1e97060a133.tar.gz
bugzilla-b84667020e4ae64f0a9c9a374999f1e97060a133.tar.xz
Bug 138904 - post_bug templates should be separate. Patch by gerv, 2xr=myk.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 143492130..b6f7f5268 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -58,7 +58,11 @@ my $comment;
$vars->{'form'} = \%::FORM;
-$template->process("bug/create/initial-comment.txt.tmpl", $vars, \$comment)
+# We can't use ValidateOutputFormat here because it defaults to HTML.
+my $template_name = "bug/create/comment";
+$template_name .= ($::FORM{'format'} ? "-$::FORM{'format'}" : "");
+
+$template->process("$template_name.txt.tmpl", $vars, \$comment)
|| ThrowTemplateError($template->error());
ValidateComment($comment);