From 625dcb639b24ba9740264ddad8dd02a05cb4336a 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. --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 7a872ed3b1..9058c4d7ee 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3204,7 +3204,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.20.1