Browse Source

Bug 24398: (QA follow-up) Add POD

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Nick Clemens 3 years ago
committed by Jonathan Druart
parent
commit
dd36b9bb5b
  1. 8
      Koha/NewsItem.pm

8
Koha/NewsItem.pm

@ -38,6 +38,14 @@ Koha::NewsItem represents a single piece of news from the opac_news table
=cut
=head3 author
$newsitem->author;
Return the Koha::Patron object for the patron who authored this news item
=cut
sub author {
my ( $self ) = @_;
return Koha::Patron->_new_from_dbic($self->_result->borrowernumber);

Loading…
Cancel
Save