diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-29 23:30:51 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-29 23:30:51 +0200 |
commit | 81a7d9fc6edf3bc8ffd4a0333fa1774aa36c4e0e (patch) | |
tree | da525a060c0d33c6e7cf0837d9976b4ce547baee /Bugzilla/User.pm | |
parent | 99589d82d943bedcd9a8ade3d91f84d770fcd5c5 (diff) | |
download | bugzilla-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.pm | 4 |
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 { |