@@ -, +, @@ --- C4/Circulation.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -3103,15 +3103,15 @@ sub CanBookBeRenewed { } } - if($auto_renew =~ 'too_soon'){ + if ( $auto_renew eq 'auto_too_soon' ) { # If its cron, tell it it's too soon for a an auto renewal return ( 0, $auto_renew, { soonest_renew_date => $soonest } ) if $cron; # Check if it's too soon for a manual renewal my $soonestManual = GetSoonestRenewDate( $patron, $issue ); - if($soonestManual > dt_from_string()){ - return (0, "too_soon", { soonest_renew_date => $soonestManual } ) unless $override_limit; + if ( $soonestManual > dt_from_string() ) { + return ( 0, "too_soon", { soonest_renew_date => $soonestManual } ) unless $override_limit; } } --