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

(-)a/Koha/Hold.pm (-6 / +2 lines)
Lines 596-603 sub store { Link Here
596
596
597
        if (
597
        if (
598
            C4::Context->preference('DefaultHoldExpirationdate')
598
            C4::Context->preference('DefaultHoldExpirationdate')
599
            and ( not defined $self->expirationdate
599
                && !$self->expirationdate
600
                or $self->expirationdate eq '' )
601
          )
600
          )
602
        {
601
        {
603
            $self->_set_default_expirationdate;
602
            $self->_set_default_expirationdate;
Lines 611-619 sub store { Link Here
611
        if ( exists $updated_columns{reservedate} ) {
610
        if ( exists $updated_columns{reservedate} ) {
612
            if (
611
            if (
613
                C4::Context->preference('DefaultHoldExpirationdate')
612
                C4::Context->preference('DefaultHoldExpirationdate')
614
                and ( not exists $updated_columns{expirationdate}
613
                && ! exists $updated_columns{expirationdate}
615
                    or exists $updated_columns{expirationdate}
616
                    and $updated_columns{expirationdate} eq '' )
617
              )
614
              )
618
            {
615
            {
619
                $self->_set_default_expirationdate;
616
                $self->_set_default_expirationdate;
620
- 

Return to bug 21729