From 87176762374a3e490f931feb3c26acc85e56ebe4 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 18 Aug 2022 09:44:03 +0100 Subject: [PATCH] Bug 28854: (follow-up) Remove errant warning Oops, I left in a bare warn from debugging.. this simply removes it; it is unrequired. --- Koha/Item.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 653eb73d79..483c582446 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -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 -- 2.20.1