Fix creation of distribution lists AKA contact groups in Roundcube (#1045)
This commit is contained in:
parent
753a016a4e
commit
8d2cefff39
2 changed files with 4 additions and 1 deletions
|
@ -722,7 +722,6 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
$result = false;
|
||||
|
||||
$list = array(
|
||||
'uid' => kolab_format::generate_uid(),
|
||||
'name' => $name,
|
||||
'member' => array(),
|
||||
);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue