From daaa24aab9444eecce16fd68320e88b8256266e6 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Wed, 23 Sep 2020 12:28:22 +0100
Subject: [PATCH] Bug 23432: Replace 'die' with 'warn'
This patch simply replaced the die statement with a warn such that the
cron script may continue to rotate other items even if this item cannot
be properly rotated due to corrupt data.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
---
Koha/StockRotationItem.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Koha/StockRotationItem.pm b/Koha/StockRotationItem.pm
index b46dc3cc88..43d949acaa 100644
--- a/Koha/StockRotationItem.pm
+++ b/Koha/StockRotationItem.pm
@@ -135,7 +135,7 @@ sub needs_advancing {
return 0;
}
} else {
- die "We have no historical branch transfer; this should not have happened!";
+ warn "We have no historical branch transfer for itemnumber " . $self->itemnumber->itemnumber . "; This should not have happened!";
}
}
--
2.11.0