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

(-)a/Koha/Object.pm (-1 / +7 lines)
Lines 143-148 sub store { Link Here
143
                    duplicate_id => $+{key}
143
                    duplicate_id => $+{key}
144
                );
144
                );
145
            }
145
            }
146
            elsif( $_->{msg} =~ /Incorrect (?<type>\w+) value: '(?<value>.*)' for column '(?<property>\w+)'/ ) {
147
                Koha::Exceptions::Object::BadValue->throw(
148
                    type     => $+{type},
149
                    value    => $+{value},
150
                    property => $+{property}
151
                );
152
            }
146
        }
153
        }
147
        # Catch-all for foreign key breakages. It will help find other use cases
154
        # Catch-all for foreign key breakages. It will help find other use cases
148
        $_->rethrow();
155
        $_->rethrow();
149
- 

Return to bug 22051