From 4ad2bea0394eef4b371c02484ccc93ae290181d9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Aug 2024 11:45:03 +0200 Subject: [PATCH] Fix link to ICS for organized events --- htdocs/comm/action/class/actioncomm.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 61a10e47439..71e0e221ffe 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -2305,8 +2305,8 @@ class ActionComm extends CommonObject $event['url'] = $link_subscription; } - $event['created'] = $this->db->jdate($obj->datec) - (!getDolGlobalString('AGENDA_EXPORT_FIX_TZ') ? 0 : ($conf->global->AGENDA_EXPORT_FIX_TZ * 3600)); - $event['modified'] = $this->db->jdate($obj->datem) - (!getDolGlobalString('AGENDA_EXPORT_FIX_TZ') ? 0 : ($conf->global->AGENDA_EXPORT_FIX_TZ * 3600)); + $event['created'] = (int) $this->db->jdate($obj->datec) - (getDolGlobalInt('AGENDA_EXPORT_FIX_TZ') * 3600); + $event['modified'] = (int) $this->db->jdate($obj->datem) - (getDolGlobalInt('AGENDA_EXPORT_FIX_TZ') * 3600); $event['num_vote'] = $this->num_vote; $event['event_paid'] = $this->event_paid; $event['status'] = $this->status; @@ -2324,7 +2324,9 @@ class ActionComm extends CommonObject $assignedUserArray[$key] = $assignedUser; } - $event['assignedUsers'] = $assignedUserArray; + if ($filters['module'] != 'project@eventorganization') { + $event['assignedUsers'] = $assignedUserArray; + } if ($qualified && $datestart) { $eventarray[] = $event;