Lines 475-481
sub CheckMandatoryAttributes {
Link Here
|
475 |
for my $attribute (@$attributes) { |
475 |
for my $attribute (@$attributes) { |
476 |
my $attr = Koha::Patron::Attribute::Types->find( $attribute->{code} ); |
476 |
my $attr = Koha::Patron::Attribute::Types->find( $attribute->{code} ); |
477 |
push @empty_mandatory_fields, $attribute->{code} |
477 |
push @empty_mandatory_fields, $attribute->{code} |
478 |
if $attr && $attr->mandatory && $attribute->{attribute} =~ m|^\s*$|; |
478 |
if $attr && $attr->opac_mandatory && $attribute->{attribute} =~ m|^\s*$|; |
479 |
} |
479 |
} |
480 |
|
480 |
|
481 |
return @empty_mandatory_fields; |
481 |
return @empty_mandatory_fields; |
482 |
- |
|
|