summaryrefslogtreecommitdiffstats
path: root/Bugzilla/FlagType.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-07-10 19:37:55 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-07-10 19:37:55 +0200
commit41cbe22c70d6e0299eacc0a09b68b8d1a52c17a4 (patch)
treec8bb5a5c0b12293eaa00fcdf60515fe33ccc39cd /Bugzilla/FlagType.pm
parentb1a8bc55f2b5822405866bf4419f6b9cb49dd503 (diff)
downloadbugzilla-41cbe22c70d6e0299eacc0a09b68b8d1a52c17a4.tar.gz
bugzilla-41cbe22c70d6e0299eacc0a09b68b8d1a52c17a4.tar.xz
Bug 822980 - backport bug 815532 to bmo (Bugzilla::User objects should be cached where appropriate)
r=glob
Diffstat (limited to 'Bugzilla/FlagType.pm')
-rw-r--r--Bugzilla/FlagType.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/FlagType.pm b/Bugzilla/FlagType.pm
index f2afb6f95..910e2d425 100644
--- a/Bugzilla/FlagType.pm
+++ b/Bugzilla/FlagType.pm
@@ -468,7 +468,8 @@ sub grant_list {
my @custusers;
my @allusers = @{Bugzilla->user->get_userlist};
foreach my $user (@allusers) {
- my $user_obj = new Bugzilla::User({name => $user->{login}});
+ my $user_obj
+ = new Bugzilla::User({ name => $user->{login}, cache => 1 });
push(@custusers, $user) if $user_obj->can_set_flag($self);
}
return \@custusers;