@@ -, +, @@ zebra's index is not up-to-date Bug 15381: Remove GetAuthType and GetAuthTypeCode --- C4/AuthoritiesMarc.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/C4/AuthoritiesMarc.pm +++ a/C4/AuthoritiesMarc.pm @@ -302,8 +302,11 @@ sub SearchAuthorities { } } - my $thisauthtypecode = Koha::Authorities->find($authid)->authtypecode; - my $thisauthtype = Koha::Authority::Types->find($thisauthtypecode); + my ( $thisauthtype, $thisauthtypecode ); + if ( my $authority = Koha::Authorities->find($authid) ) { + $thisauthtypecode = $authority->authtypecode; + $thisauthtype = Koha::Authority::Types->find($thisauthtypecode); + } unless (defined $thisauthtype) { $thisauthtypecode = $authtypecode; $thisauthtype = Koha::Authority::Types->find($thisauthtypecode); --