summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-18 06:28:22 +0000
committergerv%gerv.net <>2002-09-18 06:28:22 +0000
commitc491adcb47a55a68b7c234b03b7a3e4cd8b2fda8 (patch)
tree1e4b217ca1d33c5eb8f87321cd6fc2226bbc1210 /duplicates.cgi
parentBug 25521 - Keyword field in new bug entry. Patch by jeff.hedlund@matrixsi.co... (diff)
downloadbugzilla-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 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/duplicates.cgi b/duplicates.cgi
index 5196027ac..3eeab3fb5 100755
--- a/duplicates.cgi
+++ b/duplicates.cgi
@@ -202,12 +202,13 @@ $vars->{'product'} = $product;
$vars->{'products'} = \@::legal_product;
-my $format = ValidateOutputFormat($::FORM{'format'}, "duplicates", "reports");
+my $format =
+ GetFormat("reports/duplicates", $::FORM{'format'}, $::FORM{'ctype'});
-print "Content-Type: $format->{'contenttype'}\n\n";
+print "Content-Type: $format->{'ctype'}\n\n";
# Generate and return the UI (HTML page) from the appropriate template.
-$template->process("reports/$format->{'template'}", $vars)
+$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());