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

(-)a/Koha/Item.pm (-2 lines)
Lines 1617-1623 sub add_to_bundle { Link Here
1617
1617
1618
        # FIXME: See if we can move the below copy/paste from Koha::Object::store into it's own class and catch at a lower level in the Schema instantiation, take inspiration from DBIx::Error
1618
        # FIXME: See if we can move the below copy/paste from Koha::Object::store into it's own class and catch at a lower level in the Schema instantiation, take inspiration from DBIx::Error
1619
        if ( ref($_) eq 'DBIx::Class::Exception' ) {
1619
        if ( ref($_) eq 'DBIx::Class::Exception' ) {
1620
            warn $_->{msg};
1621
            if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) {
1620
            if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) {
1622
                # FK constraints
1621
                # FK constraints
1623
                # FIXME: MySQL error, if we support more DB engines we should implement this for each
1622
                # FIXME: MySQL error, if we support more DB engines we should implement this for each
1624
- 

Return to bug 28854