From 6adb1891d2bf602b0434eb87508568e73faa763e Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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 Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- 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.39.5