diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-07-10 19:37:55 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-07-10 19:37:55 +0200 |
commit | 41cbe22c70d6e0299eacc0a09b68b8d1a52c17a4 (patch) | |
tree | c8bb5a5c0b12293eaa00fcdf60515fe33ccc39cd /Bugzilla/Comment.pm | |
parent | b1a8bc55f2b5822405866bf4419f6b9cb49dd503 (diff) | |
download | bugzilla-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/Comment.pm')
-rw-r--r-- | Bugzilla/Comment.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |