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>
(cherry picked from commit bc23e4a1d8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2021-07-07 12:43:36 +01:00 committed by Lucas Gass
parent f09eed687c
commit ab792fa6c8
1 changed files with 2 additions and 2 deletions

View File

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