fix status="X" (no status set) returned by calendar_ical::ical2egw to "U" (unknown status), as participants with status "X" are not displayed

This commit is contained in:
Ralf Becker 2012-04-24 15:09:17 +00:00
parent 8c6341d551
commit 6c6259525a

View File

@ -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));