diff --git a/C4/Circulation.pm b/C4/Circulation.pm index c3a056272f..2df439e96e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3494,17 +3494,13 @@ sub CanBookBeRenewed { # 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; - } } - $soonest = GetSoonestRenewDate( $patron, $issue ); - if ( $soonest > dt_from_string() ) { - return ( 0, "too_soon", { soonest_renew_date => $soonest } ) unless $override_limit; + unless ($cron) { + $soonest = GetSoonestRenewDate( $patron, $issue ); + if ( $soonest > dt_from_string() ) { + return ( 0, "too_soon", { soonest_renew_date => $soonest } ) unless $override_limit; + } } my $auto_renew_code =