@@ -, +, @@ framework Can't call method "authtypetext" on an undefined value at --- authorities/authorities.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/authorities/authorities.pl +++ a/authorities/authorities.pl @@ -661,13 +661,15 @@ if ($op eq "duplicate") } my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypetext'] } ); +my $authtypetext = $authority_types->find($authtypecode); +$authtypetext = $authtypetext->authtypetext if $authtypetext; $template->param( authority_types => $authority_types, authtypecode => $authtypecode, authid => $authid, linkid => $linkid, - authtypetext => $authority_types->find($authtypecode)->authtypetext, + authtypetext => $authtypetext, hide_marc => C4::Context->preference('hide_marc'), ); output_html_with_http_headers $input, $cookie, $template->output; --