summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-06-11 12:42:50 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-06-11 12:42:50 +0200
commitb468c6e0c76d557b62ba9bcc05945437c465d06d (patch)
tree5cf9d9fc5e76545695b3ccc6498f3168fb5b0938 /Bugzilla
parentb326ea1e0b07ca34086fec764ff0bba784e5ad30 (diff)
downloadbugzilla-b468c6e0c76d557b62ba9bcc05945437c465d06d.tar.gz
bugzilla-b468c6e0c76d557b62ba9bcc05945437c465d06d.tar.xz
Fixes several bugs at once related to New Charts:
Bug 610739: YUI-generated tabular reports do not work if only one axis is set Bug 617676: Wrong URLs in the "Total" row at the bottom of tabular reports when JS is enabled Bug 655848: Use of uninitialized value $tbl in string eq at /var/www/html/bugzilla/report.cgi line 162 r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm13
1 files changed, 3 insertions, 10 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 5c9d37d9a..3ec5394b9 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -36,8 +36,6 @@ use strict;
package Bugzilla::Search;
use base qw(Exporter);
@Bugzilla::Search::EXPORT = qw(
- EMPTY_COLUMN
-
IsValidQueryType
split_order_term
translate_old_column
@@ -397,11 +395,7 @@ use constant FIELD_MAP => {
long_desc => 'longdesc',
};
-# A SELECTed expression that we use as a placeholder if somebody selects
-# <none> for the X, Y, or Z axis in report.cgi.
-use constant EMPTY_COLUMN => '-1';
-
-# Some fields are not sorted on themselves, but on other fields.
+# Some fields are not sorted on themselves, but on other fields.
# We need to have a list of these fields and what they map to.
use constant SPECIAL_ORDER => {
'target_milestone' => {
@@ -644,7 +638,7 @@ sub REPORT_COLUMNS {
# These are fields that never go into the GROUP BY on any DB. bug_id
# is here because it *always* goes into the GROUP BY as the first item,
# so it should be skipped when determining extra GROUP BY columns.
-use constant GROUP_BY_SKIP => EMPTY_COLUMN, qw(
+use constant GROUP_BY_SKIP => qw(
bug_id
flagtypes.name
keywords
@@ -828,8 +822,7 @@ sub _sql_select {
my $alias = $column;
# Aliases cannot contain dots in them. We convert them to underscores.
$alias =~ s/\./_/g;
- my $sql = ($column eq EMPTY_COLUMN)
- ? EMPTY_COLUMN : COLUMNS->{$column}->{name} . " AS $alias";
+ my $sql = COLUMNS->{$column}->{name} . " AS $alias";
push(@sql_fields, $sql);
}
return @sql_fields;