Bug 20443: (follow-up) Remove C4::Members::AttributeTypes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 May 2020 15:05:32 +0000 (17:05 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 May 2020 15:05:32 +0000 (17:05 +0200)
members/memberentry.pl

index be5cb22..cfdc060 100755 (executable)
@@ -406,7 +406,7 @@ if ($op eq 'save' || $op eq 'insert'){
           eval {$attribute->check_unique_id};
           if ( $@ ) {
               push @errors, "ERROR_extended_unique_id_failed";
-              my $attr_type = Koha::Patron::Attribute::Types->find($attr->code);
+              my $attr_type = Koha::Patron::Attribute::Types->find($attr->{code});
               $template->param(
                   ERROR_extended_unique_id_failed_code => $attr->{code},
                   ERROR_extended_unique_id_failed_value => $attr->{attribute},