Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_sync_data_calendar.php
Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | public function toKolab(Syncroton_Model_IEntry $data, $folderid, $entry = null, $timezone = null) | ||||
case 'description': | case 'description': | ||||
$value = $this->getBody($value, Syncroton_Model_EmailBody::TYPE_PLAINTEXT); | $value = $this->getBody($value, Syncroton_Model_EmailBody::TYPE_PLAINTEXT); | ||||
// If description isn't specified keep old description | // If description isn't specified keep old description | ||||
if ($value === null) { | if ($value === null) { | ||||
continue 2; | continue 2; | ||||
} | } | ||||
break; | break; | ||||
case 'uid': | |||||
// If UID is too long, use auto-generated UID (#1034) | |||||
// It's because UID is used as ServerId which cannot be longer than 64 chars | |||||
if (strlen($value) > 64) { | |||||
$value = null; | |||||
} | |||||
break; | |||||
} | } | ||||
$this->setKolabDataItem($event, $name, $value); | $this->setKolabDataItem($event, $name, $value); | ||||
} | } | ||||
// Try to fix allday events from Android | // Try to fix allday events from Android | ||||
// It doesn't set all-day flag but the period is a whole day | // It doesn't set all-day flag but the period is a whole day | ||||
if (!$event['allday'] && $event['end'] && $event['start']) { | if (!$event['allday'] && $event['end'] && $event['start']) { | ||||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |