* 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

This commit is contained in:
Ralf Becker 2012-02-09 13:28:47 +00:00
parent edb42dbfd2
commit 7db225b181

View File

@ -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'])
{