View | Details | Raw Unified | Return to bug 27857
Collapse All | Expand All

(-)a/Koha/Patron.pm (-9 / +1 lines)
Lines 1562-1575 sub extended_attributes { Link Here
1562
1562
1563
                # Insert the new ones
1563
                # Insert the new ones
1564
                for my $attribute (@$attributes) {
1564
                for my $attribute (@$attributes) {
1565
                    eval {
1565
                    $self->add_extended_attribute($attribute);
1566
                        $self->_result->create_related('borrower_attributes', $attribute);
1567
                    };
1568
                    # FIXME We should:
1569
                    # 1 - Raise an exception
1570
                    # 2 - Execute in a transaction and don't save
1571
                    #  or Insert anyway but display a message on the UI
1572
                    warn $@ if $@;
1573
                }
1566
                }
1574
            }
1567
            }
1575
        );
1568
        );
1576
- 

Return to bug 27857