@@ -, +, @@
---
admin/authtypes.pl | 2 +-
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
--- a/admin/authtypes.pl
+++ a/admin/authtypes.pl
@@ -44,7 +44,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
if ( $op eq 'add_form' ) {
my $authority_type;
- if ($authtypecode) {
+ if (defined $authtypecode) {
$authority_type = Koha::Authority::Types->find($authtypecode);
}
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt
@@ -1,7 +1,7 @@
[% INCLUDE 'doc-head-open.inc' %]
Koha › Administration › Authority types
[% IF op == 'add_form' %]
-› [% IF authority_type.authtypecode %]Modify authority type[% ELSE %]New authority type[% END %]
+› [% IF authority_type.authtypecode.defined %]Modify authority type[% ELSE %]New authority type[% END %]
[% ELSIF op == 'delete_confirm' %]
› Confirm deletion of authority type
[% END %]
@@ -32,7 +32,7 @@
› Administration
› Authority types
[% IF op == 'add_form' %]
-› [% IF authority_type.authtypecode %]Modify[% ELSE %]New[% END %] Authority type
+› [% IF authority_type.authtypecode.defined %]Modify[% ELSE %]New[% END %] Authority type
[% ELSIF op == 'delete_confirm' %]
› Confirm deletion of authority type
[% END %]
@@ -70,7 +70,7 @@