From 7a6ec0d63d8e8ffb5bda8dfa99e63f73cc7a0ccb Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 20 Jan 2022 15:15:14 +0000 Subject: [PATCH] Bug 29906: (follow-up) Clarify actual code use Signed-off-by: Jonathan Druart --- Koha/REST/V1/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/Holds.pm b/Koha/REST/V1/Holds.pm index b8d9a5e5aa2..37c0103dc64 100644 --- a/Koha/REST/V1/Holds.pm +++ b/Koha/REST/V1/Holds.pm @@ -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 = { -- 2.25.1