mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
loop over attendee not participants, as we add organizer there
This commit is contained in:
parent
7b668c306d
commit
047a8aa9fa
@ -34,7 +34,6 @@ class ischedule_server extends groupdav
|
|||||||
* Required headers in DKIM signature (DKIM-Signature is always a required header!)
|
* Required headers in DKIM signature (DKIM-Signature is always a required header!)
|
||||||
*/
|
*/
|
||||||
const REQUIRED_DKIM_HEADERS = 'iSchedule-Version:Content-Type:Originator:Recipient';
|
const REQUIRED_DKIM_HEADERS = 'iSchedule-Version:Content-Type:Originator:Recipient';
|
||||||
//const REQUIRED_DKIM_HEADERS = 'iSchedule-Version:iSchedule-Message-ID:Content-Type:Originator:Recipient';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -311,13 +310,14 @@ class ischedule_server extends groupdav
|
|||||||
$organizer = $component->getAttribute('ORGANIZER');
|
$organizer = $component->getAttribute('ORGANIZER');
|
||||||
$attendees = (array)$component->getAttribute('ATTENDEE');
|
$attendees = (array)$component->getAttribute('ATTENDEE');
|
||||||
|
|
||||||
foreach($event['participants'] as $uid => $status)
|
foreach($attendees as $attendee)
|
||||||
{
|
{
|
||||||
$xml->startElement('response');
|
$xml->startElement('response');
|
||||||
|
|
||||||
$xml->writeElement('recipient', $attendee=array_shift($attendees)); // iSchedule has not DAV:href!
|
$xml->writeElement('recipient', $attendee); // iSchedule has not DAV:href!
|
||||||
|
|
||||||
if (is_numeric($uid))
|
if (stripos($attendee, 'mailto:') === 0 &&
|
||||||
|
($uid = $GLOBALS['egw']->accounts->name2id(substr($attendee, 7), 'account_email')))
|
||||||
{
|
{
|
||||||
$xml->writeElement('request-status', '2.0;Success');
|
$xml->writeElement('request-status', '2.0;Success');
|
||||||
$xml->writeElement('calendar-data',
|
$xml->writeElement('calendar-data',
|
||||||
|
Loading…
Reference in New Issue
Block a user