aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-09-20 20:21:04 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-09-20 20:21:04 +0200
commit8bc92049518f57d645b1e3290667c21d502d0d56 (patch)
tree269bc7d2b60377a035d139062cbbb7e8935801e3 /showdependencygraph.cgi
parentBug 308709: Misleading confirmation when entering an invalid sort key for a f... (diff)
downloadbugzilla-8bc92049518f57d645b1e3290667c21d502d0d56.tar.gz
bugzilla-8bc92049518f57d645b1e3290667c21d502d0d56.tar.bz2
bugzilla-8bc92049518f57d645b1e3290667c21d502d0d56.zip
Bug 450546: Use visible_bugs() where appropriate instead of/in combination with can_see_bug() to improve performance
r/a=LpSolit
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-xshowdependencygraph.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi
index ff0602d46..67faced19 100755
--- a/showdependencygraph.cgi
+++ b/showdependencygraph.cgi
@@ -169,7 +169,10 @@ my $sth = $dbh->prepare(
q{SELECT bug_status, resolution, short_desc
FROM bugs
WHERE bugs.bug_id = ?});
-foreach my $k (keys(%seen)) {
+
+my @bug_ids = keys %seen;
+$user->visible_bugs(\@bug_ids);
+foreach my $k (@bug_ids) {
# Retrieve bug information from the database
my ($stat, $resolution, $summary) = $dbh->selectrow_array($sth, undef, $k);