@@ -, +, @@ exception $ kshell k$ prove t/db_dependent/Koha/Patron/Attributes.t --- Koha/Patron/Attribute.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Patron/Attribute.pm +++ a/Koha/Patron/Attribute.pm @@ -133,7 +133,7 @@ sub _check_repeatable { code => $self->code } )->count; - Koha::Exceptions::Patron::Attribute::NonRepeatable->throw() + Koha::Exceptions::Patron::Attribute::NonRepeatable->throw( attribute => $self ) if $attr_count > 0; } @@ -161,7 +161,7 @@ sub check_unique_id { 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; } --