Fixed email field resetting after contact update (#314)

This commit is contained in:
Aleksander Machniak (Kolab Systems) 2011-08-10 15:43:42 +02:00
parent 1fe8ad6b31
commit e2447a803a

View file

@ -1123,7 +1123,7 @@ class rcube_kolab_contacts extends rcube_addressbook
$emails = $this->get_col_values('email', $contact, true);
$object['emails'] = join(', ', array_filter($emails));
// overwrite 'email' field
unset($object['email']);
$object['email'] = null;
foreach ($this->get_col_values('phone', $contact) as $type => $values) {
if ($this->phonetypemap[$type])