From e0fe359ca7644368ed4e49ac20c6f4fca7047a08 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Apr 2021 12:07:49 +0200 Subject: [PATCH] Bug 25508: Add info about caller responsabilities We are removing the test on the existence of item and patron, callers must call renewable before. Signed-off-by: Jonathan Druart (cherry picked from commit 59f1dc09acfcf602bb2700eb4ee64ecc10f4d09b) Signed-off-by: Fridolin Somers --- Koha/Account/Line.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index 185c753772..2b3cd0c36b 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -912,7 +912,8 @@ sub renewable { my $renew_result = $line->renew_item; Conditionally attempt to renew an item and return the outcome. This is -as a consequence of the fine on an item being fully paid off +as a consequence of the fine on an item being fully paid off. +Caller must call renewable before. =cut -- 2.39.5