mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Support iPhone specific TEL type
This commit is contained in:
parent
35396fb309
commit
6ab542b88b
@ -452,6 +452,8 @@ class addressbook_vcal extends addressbook_bo
|
||||
'UID' => array('uid'),
|
||||
);
|
||||
|
||||
if ($this->log) error_log(__LINE__.__METHOD__.__FILE__."\n".array2string($_vcard)."\n",3,$this->logfile);
|
||||
|
||||
//Horde::logMessage("vCalAddressbook vcardtoegw:\n$_vcard", __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||
|
||||
require_once(EGW_SERVER_ROOT.'/phpgwapi/inc/horde/Horde/iCalendar.php');
|
||||
@ -539,6 +541,7 @@ class addressbook_vcal extends addressbook_bo
|
||||
case 'CAR':
|
||||
case 'PREF':
|
||||
case 'X-CUSTOMLABEL-CAR':
|
||||
case 'X-CUSTOMLABEL-IPHONE':
|
||||
if ($vcardRow['name'] == 'TEL')
|
||||
{
|
||||
$vcardRow['tparams'][$type] = '';
|
||||
@ -582,6 +585,12 @@ class addressbook_vcal extends addressbook_bo
|
||||
$rowName = 'TEL;CAR';
|
||||
}
|
||||
break;
|
||||
case 'X-CUSTOMLABEL-IPHONE':
|
||||
if ($rowName == 'TEL')
|
||||
{
|
||||
$rowName = 'TEL;CELL;HOME';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (strpos($pname, 'X-FUNAMBOL-') === 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user