summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-04-23 07:12:58 +0200
committerByron Jones <glob@mozilla.com>2014-04-23 07:12:58 +0200
commitf05505e38e4d212dbf85c46a95b364f8852b54da (patch)
tree495f52abc42dc84b61651edcb88cfbe425ca2954 /Bugzilla/Search
parentc9b8c719449de0be70e1a9fc492ce0e42a58ae65 (diff)
downloadbugzilla-f05505e38e4d212dbf85c46a95b364f8852b54da.tar.gz
bugzilla-f05505e38e4d212dbf85c46a95b364f8852b54da.tar.xz
Bug 993910: Bugzilla/Search/Saved.pm:294 isn't using the cache
Diffstat (limited to 'Bugzilla/Search')
-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 536cf39a4..6e1587d20 100644
--- a/Bugzilla/Search/Saved.pm
+++ b/Bugzilla/Search/Saved.pm
@@ -302,9 +302,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 });
}
############