From 8bc92049518f57d645b1e3290667c21d502d0d56 Mon Sep 17 00:00:00 2001 From: Koosha Khajeh Moogahi Date: Thu, 20 Sep 2012 20:21:04 +0200 Subject: Bug 450546: Use visible_bugs() where appropriate instead of/in combination with can_see_bug() to improve performance r/a=LpSolit --- extensions/Voting/Extension.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'extensions') 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; -- cgit v1.2.1