diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 8c1592c3f2..2d484beae7 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1562,14 +1562,7 @@ sub extended_attributes { # Insert the new ones for my $attribute (@$attributes) { - eval { - $self->_result->create_related('borrower_attributes', $attribute); - }; - # FIXME We should: - # 1 - Raise an exception - # 2 - Execute in a transaction and don't save - # or Insert anyway but display a message on the UI - warn $@ if $@; + $self->add_extended_attribute($attribute); } } );