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:
parent
9a07da768c
commit
fc033fa037
|
|
@ -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) )
|
||||
|
|
|
|||
Loading…
Reference in New Issue