https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42172 --- Comment #8 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 212495 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212495&action=edit Bug 42172: (follow-up) Do not crash if heading_object returns an empty hash Koha::Authority->heading_object returns an empty hashref if authtypecode is set to a non-existing authority type: Can't call method "display_form" on unblessed reference The unless test was not correct. Test plan:
update auth_header set authtypecode="NOPE" where authid=271;
Then reload /cgi-bin/koha/opac-detail.pl?biblionumber=153 We should/could adjust Koha::Authority->heading_object, but that's for somewhere else... Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.