diff options
author | Koosha Khajeh Moogahi <koosha.khajeh@gmail.com> | 2012-09-20 20:21:04 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-09-20 20:21:04 +0200 |
commit | 8bc92049518f57d645b1e3290667c21d502d0d56 (patch) | |
tree | 269bc7d2b60377a035d139062cbbb7e8935801e3 /extensions/Voting | |
parent | Bug 308709: Misleading confirmation when entering an invalid sort key for a f... (diff) | |
download | bugzilla-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 'extensions/Voting')
-rw-r--r-- | extensions/Voting/Extension.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm index b4352fa2f..4cb8171e8 100644 --- a/extensions/Voting/Extension.pm +++ b/extensions/Voting/Extension.pm @@ -435,6 +435,7 @@ sub _page_user { ORDER BY votes.bug_id', undef, ($who->id, $product->id)); + $user->visible_bugs([map { $_->[0] } @$vote_list]); foreach (@$vote_list) { my ($id, $count, $summary) = @$_; $total += $count; |