@@ -, +, @@ exception on invalid type/code $ kshell k$ prove t/db_dependent/Koha/Patron/Attribute.t --- Koha/Patron/Attribute.pm | 3 +++ 1 file changed, 3 insertions(+) --- a/Koha/Patron/Attribute.pm +++ a/Koha/Patron/Attribute.pm @@ -46,6 +46,9 @@ sub store { my $self = shift; + Koha::Exceptions::Patron::Attribute::InvalidType->throw( type => $self->code ) + unless Koha::Patron::Attribute::Types->find( $self->code ); + $self->_check_repeatable; $self->check_unique_id; --