From bc23e4a1d8b72192e70e6cb31f64b630280575ec Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 7 Jul 2021 12:43:36 +0100 Subject: [PATCH] Bug 28672: Pass itemnumber instead of item object The warn call here was passing the full item object which leads to HASH() in the logs.. this patch updates it to pass the itemnumber which is more helpful. Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit c89c25d81aa8d6a2500820b84aaf7a5c157ed815) Signed-off-by: Pedro Amorim --- Koha/EDI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index 954d32e42b..dd9bc94430 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -563,10 +563,10 @@ sub transfer_items { $ilink->update; --$quantity; --$mapped_by_branch{$i_branch}; - $logger->warn("Transferred item $item"); + $logger->warn("Transferred item $item->itemnumber"); } else { - $logger->warn("Skipped item $item"); + $logger->warn("Skipped item $item->itemnumber"); } if ( $quantity < 1 ) { last; -- 2.39.5