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