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

(-)a/Koha/Object.pm (-1 / +1 lines)
Lines 166-171 sub store { Link Here
166
    catch {
166
    catch {
167
        # Catch problems and raise relevant exceptions
167
        # Catch problems and raise relevant exceptions
168
        if (ref($_) eq 'DBIx::Class::Exception') {
168
        if (ref($_) eq 'DBIx::Class::Exception') {
169
            warn $_->{msg};
169
            if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) {
170
            if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) {
170
                # FK constraints
171
                # FK constraints
171
                # FIXME: MySQL error, if we support more DB engines we should implement this for each
172
                # FIXME: MySQL error, if we support more DB engines we should implement this for each
172
- 

Return to bug 22001