summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-08-29 23:30:51 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-08-29 23:30:51 +0200
commit81a7d9fc6edf3bc8ffd4a0333fa1774aa36c4e0e (patch)
treeda525a060c0d33c6e7cf0837d9976b4ce547baee /Bugzilla/User.pm
parent99589d82d943bedcd9a8ade3d91f84d770fcd5c5 (diff)
downloadbugzilla-81a7d9fc6edf3bc8ffd4a0333fa1774aa36c4e0e.tar.gz
bugzilla-81a7d9fc6edf3bc8ffd4a0333fa1774aa36c4e0e.tar.xz
Bug 909360 - backport upstream bug 898830 to bmo/4.2 for performance improvement in show_bug.cgi
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 87714011c..946fe8cb1 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -831,9 +831,7 @@ sub in_group_id {
# besides the name of the commenter.
sub groups_with_icon {
my $self = shift;
-
- my @groups = grep { $_->icon_url } @{ $self->direct_group_membership };
- return \@groups;
+ return $self->{groups_with_icon} //= [grep { $_->icon_url } @{ $self->direct_group_membership }];
}
sub get_products_by_permission {