From a688e1e08d8da28d9f3be047fe20c95851bed4e4 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 Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- 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 b8d9a5e5aa..37c0103dc6 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.39.5