http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15381 --- Comment #12 from Frédéric Demians <frederic@tamil.fr> --- (In reply to Martin Renvoize from comment #11)
Comment on attachment 45903 [details] [review] Bug 15381: Fix error in SearchAuthorities when no authtypecode
Review of attachment 45903 [details] [review]: -----------------------------------------------------------------
::: C4/AuthoritiesMarc.pm @@ +291,5 @@
my %newline; $newline{authid} = $authid; if ( !$skipmetadata ) { + my $auth_tag_to_report; + $auth_tag_to_report = Koha::Authority::Types->find($authtypecode)->auth_tag_to_report
Does this not just move the error further downstream in the code, as you will now just be passing an undefined $auth_tag_to_report to line 298 instead. Under what circumstance might $authtypecode be undefined in the first place?
This is how it was before Jonathan patch. The quick fix just restores the previous operation. Without the patch, it was failing for me on line 295: Koha::Authority::Types->find($authtypecode) was returning undef. With the patch, it works how it used to. -- You are receiving this mail because: You are watching all bug changes.