mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
"new parameter for exportVCal to export the UID the client sent and not the calendar-id-installid one, that's required by many GroupDAV/CalDAV clients and also the recommend behavior according to the RFC, it's off by default to not break SyncML"
This commit is contained in:
parent
ec3327010c
commit
36858cf2c2
@ -111,10 +111,13 @@
|
||||
* Exports one calendar event to an iCalendar item
|
||||
*
|
||||
* @param int/array $events (array of) cal_id or array of the events
|
||||
* @param string $version='1.0' could be '2.0' too
|
||||
* @param string $method='PUBLISH'
|
||||
* @param boolean $force_own_uid=true ignore the stored and maybe from the client transfered uid and generate a new one
|
||||
* RalfBecker: GroupDAV/CalDAV requires to switch that non RFC conform behavior off, dont know if SyncML still needs it
|
||||
* @return string/boolean string with vCal or false on error (eg. no permission to read the event)
|
||||
*/
|
||||
function &exportVCal($events,$version='1.0', $method='PUBLISH')
|
||||
function &exportVCal($events,$version='1.0', $method='PUBLISH',$force_own_uid=true)
|
||||
{
|
||||
$egwSupportedFields = array(
|
||||
'CLASS' => array('dbName' => 'public'),
|
||||
@ -430,7 +433,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$attributes['UID'] = $eventGUID;
|
||||
$attributes['UID'] = $force_own_uid ? $eventGUID : $event['uid'];
|
||||
|
||||
foreach($attributes as $key => $value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user