From 41cbe22c70d6e0299eacc0a09b68b8d1a52c17a4 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 10 Jul 2013 13:37:55 -0400 Subject: Bug 822980 - backport bug 815532 to bmo (Bugzilla::User objects should be cached where appropriate) r=glob --- Bugzilla/Comment.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Comment.pm') diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm index ae68e3916..4559cf1fd 100644 --- a/Bugzilla/Comment.pm +++ b/Bugzilla/Comment.pm @@ -150,8 +150,8 @@ sub attachment { sub author { my $self = shift; - $self->{'author'} ||= new Bugzilla::User($self->{'who'}); - return $self->{'author'}; + return $self->{'author'} + ||= new Bugzilla::User({ id => $self->{'who'}, cache => 1 }); } sub body_full { -- cgit v1.2.3-24-g4f1b