Bugzilla – Attachment 112424 Details for
Bug 23432
Stock rotation: cancelled transfer result in stockrotation failures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23432: Replace 'die' with 'warn'
Bug-23432-Replace-die-with-warn.patch (text/plain), 1.08 KB, created by
Nick Clemens (kidclamp)
on 2020-10-24 23:54:43 UTC
(
hide
)
Description:
Bug 23432: Replace 'die' with 'warn'
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-10-24 23:54:43 UTC
Size:
1.08 KB
patch
obsolete
>From 384f64b2dc596ebc3a43272268b8679a5a4963b7 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> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23432
:
110591
|
112405
| 112424 |
112425