[Koha-bugs] [Bug 24398] Error when viewing single news item and NewsAuthorDisplay pref set to OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 10 15:12:10 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24398

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 114309
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114309&action=edit
Bug 24398: Fix 500 when viewing a single news item at the OPAC

Test plan:
0. Set the NewsAuthorDisplay preference to 'OPAC' or 'Both OPAC and staff
client.'
1. Open the OPAC main page and click on an individual news item
Without this patch you get an ugly 500
    Template process failed: undef error - The method
Koha::NewsItem->author_title is not covered by tests!
With this patch applied you see the news with the author's info

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list