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

(-)a/members/memberentry.pl (-2 / +3 lines)
Lines 747-753 foreach (qw(dateenrolled dateexpiry dateofbirth)) { Link Here
747
}
747
}
748
748
749
if (C4::Context->preference('ExtendedPatronAttributes')) {
749
if (C4::Context->preference('ExtendedPatronAttributes')) {
750
    patron_attributes_form($template, $borrowernumber);
750
    patron_attributes_form($template, $borrowernumber, $op);
751
}
751
}
752
752
753
if (C4::Context->preference('EnhancedMessagingPreferences')) {
753
if (C4::Context->preference('EnhancedMessagingPreferences')) {
Lines 846-851 sub parse_extended_patron_attributes { Link Here
846
sub patron_attributes_form {
846
sub patron_attributes_form {
847
    my $template = shift;
847
    my $template = shift;
848
    my $borrowernumber = shift;
848
    my $borrowernumber = shift;
849
    my $op = shift;
849
850
850
    my @types = C4::Members::AttributeTypes::GetAttributeTypes();
851
    my @types = C4::Members::AttributeTypes::GetAttributeTypes();
851
    if (scalar(@types) == 0) {
852
    if (scalar(@types) == 0) {
Lines 885-890 sub patron_attributes_form { Link Here
885
                    $newentry->{auth_val_loop} = GetAuthorisedValues($attr_type->authorised_value_category(), $attr->{value});
886
                    $newentry->{auth_val_loop} = GetAuthorisedValues($attr_type->authorised_value_category(), $attr->{value});
886
                }
887
                }
887
                $i++;
888
                $i++;
889
                undef $newentry->{value} if ($attr_type->unique_id() && $op eq 'duplicate');
888
                $newentry->{form_id} = "patron_attr_$i";
890
                $newentry->{form_id} = "patron_attr_$i";
889
                push @{$items_by_class{$attr_type->class()}}, $newentry;
891
                push @{$items_by_class{$attr_type->class()}}, $newentry;
890
            }
892
            }
891
- 

Return to bug 22910