Fix removing start date (#2999); always call Todo::setStart(), with empty cDateTime object if not set

This commit is contained in:
Thomas Bruederli 2014-04-17 18:12:55 +02:00
parent d35a77629b
commit bde3ea19cd

View file

@ -50,9 +50,7 @@ class kolab_format_task extends kolab_format_xcal
$status = $this->status_map[$object['status']];
$this->obj->setStatus($status);
if (isset($object['start']))
$this->obj->setStart(self::get_datetime($object['start'], null, $object['start']->_dateonly));
$this->obj->setStart(self::get_datetime($object['start'], null, $object['start']->_dateonly));
$this->obj->setDue(self::get_datetime($object['due'], null, $object['due']->_dateonly));
$related = new vectors;