summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Chart.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-08-18 00:59:52 +0200
committerlpsolit%gmail.com <>2009-08-18 00:59:52 +0200
commit5f725ca6ee9edb009af450d79ab7a0f88c059e8d (patch)
tree935e4abc9069beba67fac581b0d263238530dd4f /Bugzilla/Chart.pm
parentef1a85038621e7e13ff850e9b1c33b504ebcde35 (diff)
downloadbugzilla-5f725ca6ee9edb009af450d79ab7a0f88c059e8d.tar.gz
bugzilla-5f725ca6ee9edb009af450d79ab7a0f88c059e8d.tar.xz
Bug 389396: Do not list series you cannot plot - Patch by Frédéric Buclin <LpSolit@gmail.com> r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Chart.pm')
-rw-r--r--Bugzilla/Chart.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm
index 1f232f310..58089d29e 100644
--- a/Bugzilla/Chart.pm
+++ b/Bugzilla/Chart.pm
@@ -396,10 +396,10 @@ sub getVisibleSeries {
"LEFT JOIN category_group_map AS cgm " .
" ON series.category = cgm.category_id " .
" AND cgm.group_id NOT IN($grouplist) " .
- "WHERE creator = " . Bugzilla->user->id . " OR " .
- " cgm.category_id IS NULL " .
+ "WHERE creator = ? OR (is_public = 1 AND cgm.category_id IS NULL) " .
$dbh->sql_group_by('series.series_id', 'cc1.name, cc2.name, ' .
- 'series.name'));
+ 'series.name'),
+ undef, Bugzilla->user->id);
foreach my $series (@$serieses) {
my ($cat, $subcat, $name, $series_id) = @$series;
$cats{$cat}{$subcat}{$name} = $series_id;