Preserve categories when saving contact in web client (#2608)
This commit is contained in:
parent
17ce267587
commit
7048e00350
1 changed files with 3 additions and 0 deletions
|
@ -1203,6 +1203,9 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
|
||||
$contact['address'] = $addresses;
|
||||
|
||||
// categories are not supported in the web client but should be preserved (#2608)
|
||||
$contact['categories'] = $old['categories'];
|
||||
|
||||
// copy meta data (starting with _) from old object
|
||||
foreach ((array)$old as $key => $val) {
|
||||
if (!isset($contact[$key]) && $key[0] == '_')
|
||||
|
|
Loading…
Add table
Reference in a new issue