From 6c6259525ab8ff28b66fa358a28777940920d6e0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Apr 2012 15:09:17 +0000 Subject: [PATCH] fix status="X" (no status set) returned by calendar_ical::ical2egw to "U" (unknown status), as participants with status "X" are not displayed --- calendar/inc/class.calendar_uiforms.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index d09f0bc4ec..6a0183c909 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1679,7 +1679,8 @@ function replace_eTemplate_onsubmit() foreach($event['participants'] as $uid => $status) { calendar_so::split_user($uid, $user_type, $user_id); - $event['participant_types'][$user_type][$user_id] = $status; + $event['participants'][$uid] = $event['participant_types'][$user_type][$user_id] = + $status && $status !== 'X' ? $status : 'U'; // X --> no status given --> U = unknown } } //error_log(__METHOD__."(...) parsed as ".array2string($event));