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

(-)a/Koha/Object.pm (-3 / +3 lines)
Lines 174-184 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>\S+)/ ) {
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
                    property => $+{property}
182
                    property => $+{property},
182
                );
183
                );
183
            }
184
            }
184
        }
185
        }
185
- 

Return to bug 23825