code => $self->code
}
)->count;
Koha::Exceptions::Patron::Attribute::NonRepeatable->throw()
Koha::Exceptions::Patron::Attribute::NonRepeatable->throw( attribute => $self )
if $attr_count > 0;
my $unique_count = Koha::Patron::Attributes
->search( $params )
->count;
Koha::Exceptions::Patron::Attribute::UniqueIDConstraint->throw()
Koha::Exceptions::Patron::Attribute::UniqueIDConstraint->throw( attribute => $self )
if $unique_count > 0;
-