From 5f725ca6ee9edb009af450d79ab7a0f88c059e8d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Aug 2009 22:59:52 +0000 Subject: Bug 389396: Do not list series you cannot plot - Patch by Frédéric Buclin r=dkl a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Chart.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Chart.pm') 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; -- cgit v1.2.3-24-g4f1b