From 94a043e14304c809a73cdc6ea9f2d0aa27fef631 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Tue, 6 Oct 2020 11:30:31 +0100 Subject: [PATCH] Bug 24083: (follow-up) Fix GetRenewCount return GetRenewCount now returns 6 values when a call to it succeeds, a failed call should also return the same number of values. This commit adds these additional values. Signed-off-by: Katrin Fischer --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index c3d54e8773..685a87082c 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3215,7 +3215,7 @@ sub GetRenewCount { my $patron = Koha::Patrons->find( $bornum ); my $item = Koha::Items->find($itemno); - return (0, 0, 0) unless $patron or $item; # Wrong call, no renewal allowed + return (0, 0, 0, 0, 0, 0) unless $patron or $item; # Wrong call, no renewal allowed # Look in the issues table for this item, lent to this borrower, # and not yet returned. -- 2.11.0