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

(-)a/C4/Circulation.pm (-1 / +7 lines)
Lines 2251-2256 sub _debar_user_on_return { Link Here
2251
                  if DateTime::Duration->compare( $max_sd, $suspension_days ) < 0;
2251
                  if DateTime::Duration->compare( $max_sd, $suspension_days ) < 0;
2252
            }
2252
            }
2253
2253
2254
            if ( C4::Context->preference('CumulativeRestrictionPeriods') and $borrower->{debarred} ) {
2255
                my $debarment = @{ GetDebarments( { borrowernumber => $borrower->{borrowernumber}, type => 'SUSPENSION' } ) }[0];
2256
                if ( $debarment ) {
2257
                    $return_date = dt_from_string( $debarment->{expiration}, 'sql' );
2258
                }
2259
            }
2260
2254
            my $new_debar_dt =
2261
            my $new_debar_dt =
2255
              $dt_today->clone()->add_duration( $suspension_days );
2262
              $dt_today->clone()->add_duration( $suspension_days );
2256
2263
2257
- 

Return to bug 14146