View | Details | Raw Unified | Return to bug 26539
Collapse All | Expand All

(-)a/members/memberentry.pl (-4 / +3 lines)
Lines 916-922 sub patron_attributes_form { Link Here
916
    # map patron's attributes into a more convenient structure
916
    # map patron's attributes into a more convenient structure
917
    my %attr_hash = ();
917
    my %attr_hash = ();
918
    foreach my $attr (@$attributes) {
918
    foreach my $attr (@$attributes) {
919
        push @{ $attr_hash{$attr->{code}} }, $attr;
919
        push @{ $attr_hash{lc($attr->{code})} }, $attr;
920
    }
920
    }
921
921
922
    my @attribute_loop = ();
922
    my @attribute_loop = ();
Lines 932-939 sub patron_attributes_form { Link Here
932
            category_code     => $attr_type->category_code(),
932
            category_code     => $attr_type->category_code(),
933
            mandatory         => $attr_type->mandatory(),
933
            mandatory         => $attr_type->mandatory(),
934
        };
934
        };
935
        if (exists $attr_hash{$attr_type->code()}) {
935
        if (exists $attr_hash{lc($attr_type->code)}) {
936
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
936
            foreach my $attr (@{ $attr_hash{lc($attr_type->code)} }) {
937
                my $newentry = { %$entry };
937
                my $newentry = { %$entry };
938
                $newentry->{value} = $attr->{attribute};
938
                $newentry->{value} = $attr->{attribute};
939
                $newentry->{use_dropdown} = 0;
939
                $newentry->{use_dropdown} = 0;
940
- 

Return to bug 26539