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>
(cherry picked from commit dd36b9bb5b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit b14cf9f64b)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit c4d76b7171)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Nick Clemens 2020-12-21 13:43:21 +00:00 committed by Victor Grousset/tuxayo
parent bb91b7a8a6
commit 1f61219d72

View file

@ -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);