diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 5a51074932..ec71a3cd90 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -466,8 +466,8 @@ class calendar_ical extends calendar_boupdate $cutype = 'GROUP'; if ($this->productManufacturer == 'groupdav') { - $participantURL = 'urn:uuid:'.common::generate_uid('group', substr($uid, 1)); - $cutype = 'GROUP'; + $participantURL = 'invalid:nomail'; + $cutype = 'INDIVIDUAL'; } $members = $GLOBALS['egw']->accounts->members($uid, true); if (!isset($event['participants'][$this->user]) && in_array($this->user, $members)) @@ -487,8 +487,7 @@ class calendar_ical extends calendar_boupdate } break; case 'r': - $participantURL = 'urn:uuid:'.common::generate_uid('resources', substr($uid, 1)); - $cutype = ExecMethod2('phpgwapi.groupdav_principals.resouce_is_location', substr($uid, 1)) ? 'ROOM' : 'RESOURCE'; + $cutype = 'RESOURCE'; break; case 'u': // account case 'c': // contact @@ -506,10 +505,7 @@ class calendar_ical extends calendar_boupdate if (!empty($status)) $options['PARTSTAT'] = $status; if (!empty($cutype)) $options['CUTYPE'] = $cutype; if (!empty($rsvp)) $options['RSVP'] = $rsvp; - if (!empty($info['email']) && $participantURL != 'MAILTO:'.$info['email']) - { - $options['EMAIL'] = $info['email']; // only add EMAIL attribute, if not already URL, as eg. Akonadi is reported to have problems with it - } + if (!empty($info['email'])) $options['EMAIL'] = $info['email']; if ($info['type'] != 'e') $options['X-EGROUPWARE-UID'] = $uid; if ($quantity > 1) $options['X-EGROUPWARE-QUANTITY'] = $quantity; $attributes['ATTENDEE'][] = $participantURL;