diff options
author | gerv%gerv.net <> | 2002-09-18 06:28:22 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-09-18 06:28:22 +0000 |
commit | c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8 (patch) | |
tree | 1e4b217ca1d33c5eb8f87321cd6fc2226bbc1210 /enter_bug.cgi | |
parent | Bug 25521 - Keyword field in new bug entry. Patch by jeff.hedlund@matrixsi.co... (diff) | |
download | bugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.tar.gz bugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.tar.bz2 bugzilla-c491adcb47a55a68b7c234b03b7a3e4cd8b2fda8.zip |
Bug 146495 - clean up format ambiguities. We now have separate "format" and "ctype" parameters. Also fixes bug 140513, bug 143604, and bug 148133. Patch by gerv; r=myk.
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 7aa6dfc66..a779aa85d 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -382,8 +382,9 @@ if ($::usergroupset ne '0') { $vars->{'default'} = \%default; -my $format = ValidateOutputFormat($::FORM{'format'}, "create", "bug/create"); +my $format = + GetFormat("bug/create/create", $::FORM{'format'}, $::FORM{'ctype'}); -print "Content-type: $format->{'contenttype'}\n\n"; -$template->process("bug/create/$format->{'template'}", $vars) +print "Content-type: $format->{'ctype'}\n\n"; +$template->process($format->{'template'}, $vars) || ThrowTemplateError($template->error()); |