Bug 28854: (follow-up) Remove errant warning
Oops, I left in a bare warn from debugging.. this simply removes it; it is unrequired. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
218419ce2c
commit
52734ca9be
|
|
@ -1617,7 +1617,6 @@ sub add_to_bundle {
|
|||
|
||||
# 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
|
||||
if ( ref($_) eq 'DBIx::Class::Exception' ) {
|
||||
warn $_->{msg};
|
||||
if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) {
|
||||
# FK constraints
|
||||
# FIXME: MySQL error, if we support more DB engines we should implement this for each
|
||||
|
|
|
|||
Loading…
Reference in New Issue