View | Details | Raw Unified | Return to bug 25393
Collapse All | Expand All

(-)a/C4/Circulation.pm (-4 / +3 lines)
Lines 3103-3117 sub CanBookBeRenewed { Link Here
3103
        }
3103
        }
3104
    }
3104
    }
3105
3105
3106
    if($auto_renew =~ 'too_soon'){
3106
    if ( $auto_renew eq 'auto_too_soon' ) {
3107
3107
3108
        # If its cron, tell it it's too soon for a an auto renewal
3108
        # If its cron, tell it it's too soon for a an auto renewal
3109
        return ( 0, $auto_renew, { soonest_renew_date => $soonest } ) if $cron;
3109
        return ( 0, $auto_renew, { soonest_renew_date => $soonest } ) if $cron;
3110
3110
3111
        # Check if it's too soon for a manual renewal
3111
        # Check if it's too soon for a manual renewal
3112
        my $soonestManual = GetSoonestRenewDate( $patron, $issue );
3112
        my $soonestManual = GetSoonestRenewDate( $patron, $issue );
3113
        if($soonestManual > dt_from_string()){
3113
        if ( $soonestManual > dt_from_string() ) {
3114
            return (0, "too_soon", { soonest_renew_date => $soonestManual } ) unless $override_limit;
3114
            return ( 0, "too_soon", { soonest_renew_date => $soonestManual } ) unless $override_limit;
3115
        }
3115
        }
3116
    }
3116
    }
3117
3117
3118
- 

Return to bug 25393