diff --git a/Koha/Hold.pm b/Koha/Hold.pm index 949770d14a..56780f889a 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -91,8 +91,11 @@ sub suspend_hold { } $self->suspend(1); - $self->suspend_until( $dt ); - + if ( defined $dt ){ + $self->suspend_until( $dt->ymd ); + } else { + $self->suspend_until( $dt ); + } $self->store(); logaction( 'HOLDS', 'SUSPEND', $self->reserve_id, Dumper($self->unblessed) )