aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search/Saved.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-04-23 13:11:28 +0800
committerByron Jones <glob@mozilla.com>2014-04-23 13:11:28 +0800
commite000e51493a832c2630a903779574c3fc7782150 (patch)
tree0c55fa6e8a2b6bb8edaf7e186cd536b1786143a8 /Bugzilla/Search/Saved.pm
parenteab44b1aad3f243dd69b1d30519b73a1e537fda2 (diff)
downloadbugs-e000e51493a832c2630a903779574c3fc7782150.tar
bugs-e000e51493a832c2630a903779574c3fc7782150.tar.gz
bugs-e000e51493a832c2630a903779574c3fc7782150.tar.bz2
bugs-e000e51493a832c2630a903779574c3fc7782150.tar.xz
bugs-e000e51493a832c2630a903779574c3fc7782150.zip
Bug 993910: Bugzilla/Search/Saved.pm:294 isn't using the cache
r=gerv, a=glob
Diffstat (limited to 'Bugzilla/Search/Saved.pm')
-rw-r--r--Bugzilla/Search/Saved.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/Search/Saved.pm b/Bugzilla/Search/Saved.pm
index 5dfce611b..2e4c4a336 100644
--- a/Bugzilla/Search/Saved.pm
+++ b/Bugzilla/Search/Saved.pm
@@ -290,9 +290,8 @@ sub url { return $_[0]->{'query'}; }
sub user {
my ($self) = @_;
- return $self->{user} if defined $self->{user};
- $self->{user} = new Bugzilla::User($self->{userid});
- return $self->{user};
+ return $self->{user} ||=
+ Bugzilla::User->new({ id => $self->{userid}, cache => 1 });
}
############