diff options
Diffstat (limited to 'Bugzilla/BugUserLastVisit.pm')
-rw-r--r-- | Bugzilla/BugUserLastVisit.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/BugUserLastVisit.pm b/Bugzilla/BugUserLastVisit.pm index 9c7dcd452..d043b121a 100644 --- a/Bugzilla/BugUserLastVisit.pm +++ b/Bugzilla/BugUserLastVisit.pm @@ -39,6 +39,13 @@ sub bug_id { return $_[0]->{bug_id} } sub user_id { return $_[0]->{user_id} } sub last_visit_ts { return $_[0]->{last_visit_ts} } +sub user { + my $self = shift; + + $self->{user} //= Bugzilla::User->new({ id => $self->user_id, cache => 1 }); + return $self->{user}; +} + 1; __END__ @@ -81,4 +88,6 @@ listed below. =item C<last_visit_ts> +=item C<user> + =back |