]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 23 Feb 2021 12:12:56 +0000 (13:12 +0100)
commit506b8f125b7c7dda1dc70b4963026ea975a8c655
tree45dd3a54b9e111d2525166f19407c2d7e9855226
parenta6527b105897e4611dd702ffbe627ca579baff77
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>
Koha/NewsItem.pm
t/db_dependent/Koha/News.t