From eb619ceca5f478e09b472196b28b06324fc956ce Mon Sep 17 00:00:00 2001 From: Beu Date: Thu, 22 Jun 2023 10:48:22 +0200 Subject: [PATCH] fix inverted value between morning and afternoon --- htdocs/comm/action/class/actioncomm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 94e9ca8ca75..1291f195e30 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -2196,12 +2196,12 @@ class ActionComm extends CommonObject $obj = $this->db->fetch_object($resql); $event = array(); - if ($obj->halfday == -1) { + if ($obj->halfday == 1) { $event['fulldayevent'] = false; $timestampStart = dol_stringtotime($obj->date_start." 00:00:00", 0); $timestampEnd = dol_stringtotime($obj->date_end." 12:00:00", 0); - } elseif ($obj->halfday == 1) { + } elseif ($obj->halfday == -1) { $event['fulldayevent'] = false; $timestampStart = dol_stringtotime($obj->date_start." 12:00:00", 0);