@@ -, +, @@ --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2771,7 +2771,6 @@ sub CanBookBeRenewed { ] } ); - $soonest_renew_date = GetSoonestRenewDate($borrowernumber, $itemnumber, $branchcode, $issuing_rule); return ( 0, "too_many" ) if not $issuing_rule->{renewalsallowed} or $issuing_rule->{renewalsallowed} <= $issue->renewals; @@ -2793,6 +2792,7 @@ sub CanBookBeRenewed { return ( 0, 'overdue'); } + $soonest_renew_date = GetSoonestRenewDate($borrowernumber, $itemnumber, $branchcode, $issuing_rule); $auto_renew = _CanBookBeAutoRenewed({ patron => $patron, --