Remove useless 'vcard' data on contact import - fixes problem with such data

serialization in kolab_cache (Bug #1711)
This commit is contained in:
Aleksander Machniak 2013-04-12 19:05:45 +02:00
parent 4d2320cf1c
commit db055e29c7

View file

@ -1156,6 +1156,9 @@ class rcube_kolab_contacts extends rcube_addressbook
}
}
// When importing contacts 'vcard' data is added, we don't need it (Bug #1711)
unset($contact['vcard']);
// add empty values for some fields which can be removed in the UI
return array_filter($contact) + array('nickname' => '', 'birthday' => '', 'anniversary' => '', 'freebusyurl' => '', 'photo' => $contact['photo']);
}