From e2447a803ab33d97e668d9836f311c0cf3e5b7a3 Mon Sep 17 00:00:00 2001 From: "Aleksander Machniak (Kolab Systems)" Date: Wed, 10 Aug 2011 15:43:42 +0200 Subject: [PATCH] Fixed email field resetting after contact update (#314) --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index f8286d88..dab7a685 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -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])