From 7db225b1811076abe09d0389cc356085a619e33b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 9 Feb 2012 13:28:47 +0000 Subject: [PATCH] * eSync/Addressbook: HTC Desire needs at least one telefon number, otherwise sync of contact fails without error, we now return at least an empty work phone --- addressbook/inc/class.addressbook_activesync.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addressbook/inc/class.addressbook_activesync.inc.php b/addressbook/inc/class.addressbook_activesync.inc.php index 6aa1b5ffb3..319491d8b9 100644 --- a/addressbook/inc/class.addressbook_activesync.inc.php +++ b/addressbook/inc/class.addressbook_activesync.inc.php @@ -394,6 +394,12 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug $message->$key = ('"'.$emailname.'"'." <$contact[$attr]>"); } break; + // HTC Desire needs at least one telefon number, otherwise sync of contact fails without error, + // but will be retired forerver --> we always return work-phone xml element, even if it's empty + // (Mircosoft ActiveSync Contact Class Protocol Specification says all phone-numbers are optional!) + case 'tel_work': + $message->$key = (string)$contact[$attr]; + break; case 'n_fileas': if ($GLOBALS['egw_info']['user']['preferences']['activesync']['addressbook-force-fileas']) {