Fix usage of KolabEvent url setter/getter
This commit is contained in:
parent
5627ffb731
commit
4196be5b3a
1 changed files with 2 additions and 6 deletions
|
@ -113,6 +113,7 @@ abstract class kolab_format_xcal extends kolab_format
|
|||
'title' => $this->obj->summary(),
|
||||
'location' => $this->obj->location(),
|
||||
'description' => $this->obj->description(),
|
||||
'url' => $this->obj->url(),
|
||||
'status' => $status_map[$this->obj->status()],
|
||||
'sensitivity' => $sensitivity_map[$this->obj->classification()],
|
||||
'priority' => $this->obj->priority(),
|
||||
|
@ -245,12 +246,7 @@ abstract class kolab_format_xcal extends kolab_format
|
|||
$this->obj->setPriority($object['priority']);
|
||||
$this->obj->setClassification($this->sensitivity_map[$object['sensitivity']]);
|
||||
$this->obj->setCategories(self::array2vector($object['categories']));
|
||||
|
||||
$vurls = new vectorurl;
|
||||
foreach ((array)$object['url'] as $url) {
|
||||
$vurls->push(new Url(strval($url)));
|
||||
}
|
||||
$this->obj->setUrls($vurls);
|
||||
$this->obj->setUrl(strval($object['url']));
|
||||
|
||||
// process event attendees
|
||||
$attendees = new vectorattendee;
|
||||
|
|
Loading…
Add table
Reference in a new issue