Fix object recurrence rule processing

This commit is contained in:
Thomas Bruederli 2012-07-03 09:56:03 +02:00
parent 1142a80886
commit 0158440400
3 changed files with 2 additions and 6 deletions

View file

@ -118,9 +118,8 @@ class kolab_format_event extends kolab_format_xcal
// read object properties
$object += array(
'allday' => $this->obj->start()->isDateOnly(),
'start' => self::php_datetime($this->obj->start()),
'end' => self::php_datetime($this->obj->end()),
'allday' => $this->obj->start()->isDateOnly(),
'free_busy' => $this->obj->transparency() ? 'free' : 'busy', // TODO: transparency is only boolean
'attendees' => array(),
);

View file

@ -89,10 +89,6 @@ class kolab_format_task extends kolab_format_xcal
$object['complete'] = intval($this->obj->percentComplete());
// if start/end date is set
if ($dtstart = $this->obj->start())
$object['start'] = self::php_datetime($dtstart);
// if due date is set
if ($due = $this->obj->due())
$object['due'] = self::php_datetime($due);

View file

@ -105,6 +105,7 @@ abstract class kolab_format_xcal extends kolab_format
'sensitivity' => $sensitivity_map[$this->obj->classification()],
'priority' => $this->obj->priority(),
'categories' => self::vector2array($this->obj->categories()),
'start' => self::php_datetime($this->obj->start()),
);
// read organizer and attendees