aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2003-06-26 06:22:50 +0000
committergerv%gerv.net <>2003-06-26 06:22:50 +0000
commit4f6b75a65628b0d86c760309dd81dd03f5c6d308 (patch)
tree5363459b06e75bc620ceab9dfd045b0f66b6c27c /query.cgi
parentFix for bug 204631: enhances config.cgi to generate a list of queryable field... (diff)
downloadbugzilla-4f6b75a65628b0d86c760309dd81dd03f5c6d308.tar.gz
bugzilla-4f6b75a65628b0d86c760309dd81dd03f5c6d308.tar.bz2
bugzilla-4f6b75a65628b0d86c760309dd81dd03f5c6d308.zip
Bug 16009 - generic charting. Patch by gerv; r,a=justdave.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi9
1 files changed, 8 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index 2a8051b6b..5e623437c 100755
--- a/query.cgi
+++ b/query.cgi
@@ -137,7 +137,9 @@ sub PrefillForm {
"status_whiteboard_type", "bug_id",
"bugidtype", "keywords", "keywords_type",
"x_axis_field", "y_axis_field", "z_axis_field",
- "chart_format", "cumulate", "x_labels_vertical")
+ "chart_format", "cumulate", "x_labels_vertical",
+ "category", "subcategory", "name", "newcategory",
+ "newsubcategory", "public", "frequency")
{
# This is a bit of a hack. The default, empty list has
# three entries to accommodate the needs of the email fields -
@@ -378,6 +380,11 @@ $vars->{'userdefaultquery'} = $userdefaultquery;
$vars->{'orders'} = \@orders;
$default{'querytype'} = $deforder || 'Importance';
+if (($::FORM{'query_format'} || $::FORM{'format'}) eq "create-series") {
+ require Bugzilla::Chart;
+ $vars->{'category'} = Bugzilla::Chart::getVisibleSeries();
+}
+
# Add in the defaults.
$vars->{'default'} = \%default;