@@ -, +, @@ sensitivity --- members/memberentry.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/members/memberentry.pl +++ a/members/memberentry.pl @@ -916,7 +916,7 @@ sub patron_attributes_form { # map patron's attributes into a more convenient structure my %attr_hash = (); foreach my $attr (@$attributes) { - push @{ $attr_hash{$attr->{code}} }, $attr; + push @{ $attr_hash{lc($attr->{code})} }, $attr; } my @attribute_loop = (); @@ -932,8 +932,8 @@ sub patron_attributes_form { category_code => $attr_type->category_code(), mandatory => $attr_type->mandatory(), }; - if (exists $attr_hash{$attr_type->code()}) { - foreach my $attr (@{ $attr_hash{$attr_type->code()} }) { + if (exists $attr_hash{lc($attr_type->code)}) { + foreach my $attr (@{ $attr_hash{lc($attr_type->code)} }) { my $newentry = { %$entry }; $newentry->{value} = $attr->{attribute}; $newentry->{use_dropdown} = 0; --