From c4d76b7171e1f98a2e1d6a7386757d466a242ea8 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 21 Dec 2020 13:43:21 +0000 Subject: [PATCH] Bug 24398: (QA follow-up) Add POD Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit dd36b9bb5b05e66f01ecd32d028247894820523c) Signed-off-by: Fridolin Somers (cherry picked from commit b14cf9f64b752c6bec8cb186102f6a213bcba5b5) Signed-off-by: Andrew Fuerste-Henry --- Koha/NewsItem.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Koha/NewsItem.pm b/Koha/NewsItem.pm index 19bed767a6..d2fbcc05fe 100644 --- a/Koha/NewsItem.pm +++ b/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); -- 2.39.5