Bug 18382: (QA follow-up) Don't set suspend_until if dt if undefined

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle M Hall 2018-03-27 10:45:09 -04:00 committed by Jonathan Druart
parent 9a07da768c
commit fc033fa037
1 changed files with 1 additions and 5 deletions

View File

@ -91,11 +91,7 @@ sub suspend_hold {
}
$self->suspend(1);
if ( defined $dt ){
$self->suspend_until( $dt->datetime );
} else {
$self->suspend_until( $dt );
}
$self->suspend_until( $dt->datetime ) if ( defined $dt );
$self->store();
logaction( 'HOLDS', 'SUSPEND', $self->reserve_id, Dumper($self->unblessed) )