From 41dc9ce95e17fc1b952f521fdfaaab7d21535ea3 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 (cherry picked from commit bc23e4a1d8b72192e70e6cb31f64b630280575ec) Signed-off-by: Lucas Gass (cherry picked from commit ab792fa6c8fe0419257f7e006f401209961b0a1a) Signed-off-by: Arthur Suzuki --- Koha/EDI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index f35f09ed16..318ea21a4c 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -553,10 +553,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