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

(-)a/Koha/Hold.pm (-2 / +4 lines)
Lines 895-902 sub _set_default_expirationdate { Link Here
895
    my $timeunit =
895
    my $timeunit =
896
      C4::Context->preference('DefaultHoldExpirationdateUnitOfTime') || 'days';
896
      C4::Context->preference('DefaultHoldExpirationdateUnitOfTime') || 'days';
897
897
898
    my $reservedate = dt_from_string( $self->reservedate );
899
    my $reservedate_clone = $reservedate->clone;
900
898
    $self->expirationdate(
901
    $self->expirationdate(
899
        dt_from_string( $self->reservedate->clone )->add( $timeunit => $period ) );
902
        $reservedate_clone->add( $timeunit => $period ) );
900
}
903
}
901
904
902
=head3 _move_to_old
905
=head3 _move_to_old
903
- 

Return to bug 32563