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

(-)a/Koha/Object.pm (-2 / +2 lines)
Lines 174-180 sub store { Link Here
174
                    duplicate_id => $+{key}
174
                    duplicate_id => $+{key}
175
                );
175
                );
176
            }
176
            }
177
            elsif( $_->{msg} =~ /Incorrect (?<type>\w+) value: '(?<value>.*)' for column '(?<property>\w+)'/ ) {
177
            elsif( $_->{msg} =~ /Incorrect (?<type>\w+) value: '(?<value>.*)' for column \W?(?<property>\w+)/ ) {
178
            # The optional \W in the regex might be a quote or backtick
178
                Koha::Exceptions::Object::BadValue->throw(
179
                Koha::Exceptions::Object::BadValue->throw(
179
                    type     => $+{type},
180
                    type     => $+{type},
180
                    value    => $+{value},
181
                    value    => $+{value},
181
- 

Return to bug 23825