"fix for newest Funambol Outlook client: ignoring VOICE in TEL;VOICE;HOME and TEL;VOICE;WORK"

This commit is contained in:
Ralf Becker 2009-06-29 19:03:43 +00:00
parent e1dbb4688a
commit 48993a04dd

View File

@ -712,6 +712,19 @@ class addressbook_vcal extends addressbook_bo
switch($rowName)
{
case 'TEL;VOICE;HOME':
case 'TEL;VOICE;WORK': // check if we have a mapping without VOICE
$replace = str_replace('VOICE;','',$rowName);
if (!isset($rowNames[$replace]) && array_key_exists($replace, $this->supportedFields))
{
$finalRowNames[$replace] = $vcardKey; // if yes use that
}
else
{
$finalRowNames[$rowName] = $vcardKey; // else use existing mapping
}
break;
case 'ADR':
case 'TEL':
case 'URL':