Fix creation of distribution lists AKA contact groups in Roundcube (#1045)

This commit is contained in:
Thomas Bruederli 2012-09-26 17:49:32 +02:00
parent 753a016a4e
commit 8d2cefff39
2 changed files with 4 additions and 1 deletions

View file

@ -722,7 +722,6 @@ class rcube_kolab_contacts extends rcube_addressbook
$result = false;
$list = array(
'uid' => kolab_format::generate_uid(),
'name' => $name,
'member' => array(),
);

View file

@ -71,6 +71,9 @@ class kolab_format_distributionlist extends kolab_format
$this->obj->setMembers($members);
// set type property for proper caching
$object['_type'] = 'distribution-list';
// cache this data
$this->data = $object;
unset($this->data['_formatobj']);
@ -123,6 +126,7 @@ class kolab_format_distributionlist extends kolab_format
'changed' => self::php_datetime($this->obj->lastModified()),
'name' => $this->obj->name(),
'member' => array(),
'_type' => 'distribution-list',
);
$members = $this->obj->members();