Bug 29906: (follow-up) Clarify actual code use

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2022-01-20 15:15:14 +00:00 committed by Fridolin Somers
parent 092721c3d1
commit 6631a2e234

View file

@ -282,7 +282,7 @@ sub edit {
# suspended_until can also be set to undef
my $suspended_until =
exists $body->{suspended_until}
? $body->{suspended_until} && dt_from_string( $body->{suspended_until}, 'rfc3339' )
? dt_from_string( $body->{suspended_until}, 'rfc3339' )
: $hold->suspend_until && dt_from_string( $hold->suspend_until, 'iso' );
my $params = {