projects
/
koha_ffzg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug 18382: (QA follow-up) Don't set suspend_until if dt if undefined
[koha_ffzg]
/
Koha
/
Hold.pm
diff --git
a/Koha/Hold.pm
b/Koha/Hold.pm
index
949770d
..
e76b9fb
100644
(file)
--- a/
Koha/Hold.pm
+++ b/
Koha/Hold.pm
@@
-91,8
+91,7
@@
sub suspend_hold {
}
$self->suspend(1);
- $self->suspend_until( $dt );
-
+ $self->suspend_until( $dt->datetime ) if ( defined $dt );
$self->store();
logaction( 'HOLDS', 'SUSPEND', $self->reserve_id, Dumper($self->unblessed) )