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 <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c89c25d81a)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2021-07-07 12:43:36 +01:00 committed by Pedro Amorim
parent ea04064048
commit bc23e4a1d8
1 changed files with 2 additions and 2 deletions

View File

@ -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;