]> git.koha-community.org Git - koha.git/commit
Bug 27714: Prevent Koha::NewsItem->author to explode
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 17 Feb 2021 11:03:56 +0000 (12:03 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Fri, 5 Mar 2021 14:22:06 +0000 (14:22 +0000)
commit80f665ece4dec9a105883788c4e0e30889abeadf
tree25fa087e1ba9fc0710a5d1a5cafcf41718cec99a
parentc4d76b7171e1f98a2e1d6a7386757d466a242ea8
Bug 27714: Prevent Koha::NewsItem->author to explode

If the author of a news has been removed, Koha::NewsItem->author must
not explode

DBIC result _type  isn't of the _type Borrower at t/db_dependent/Koha/News.t line 68.

Test plan:
 prove t/db_dependent/Koha/News.t
must return green, and changes must be consistent

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 506b8f125b7c7dda1dc70b4963026ea975a8c655)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 2329f57f882fa493fb2943b3f242fbc6626ea61d)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/NewsItem.pm
t/db_dependent/Koha/News.t