Lines 597-604
sub store {
Link Here
|
597 |
|
597 |
|
598 |
if ( |
598 |
if ( |
599 |
C4::Context->preference('DefaultHoldExpirationdate') |
599 |
C4::Context->preference('DefaultHoldExpirationdate') |
600 |
and ( not defined $self->expirationdate |
600 |
&& !$self->expirationdate |
601 |
or $self->expirationdate eq '' ) |
|
|
602 |
) |
601 |
) |
603 |
{ |
602 |
{ |
604 |
$self->_set_default_expirationdate; |
603 |
$self->_set_default_expirationdate; |
Lines 612-620
sub store {
Link Here
|
612 |
if ( exists $updated_columns{reservedate} ) { |
611 |
if ( exists $updated_columns{reservedate} ) { |
613 |
if ( |
612 |
if ( |
614 |
C4::Context->preference('DefaultHoldExpirationdate') |
613 |
C4::Context->preference('DefaultHoldExpirationdate') |
615 |
and ( not exists $updated_columns{expirationdate} |
614 |
&& ! exists $updated_columns{expirationdate} |
616 |
or exists $updated_columns{expirationdate} |
|
|
617 |
and $updated_columns{expirationdate} eq '' ) |
618 |
) |
615 |
) |
619 |
{ |
616 |
{ |
620 |
$self->_set_default_expirationdate; |
617 |
$self->_set_default_expirationdate; |
621 |
- |
|
|