1
0
mirror of synced 2024-11-22 05:16:09 +03:00

empty phones fix

This commit is contained in:
Grisha Pomadchin 2013-10-31 11:44:12 +04:00
parent 7cdda7aa11
commit 270bb72c9d

View File

@ -704,13 +704,17 @@ class ICrmOrderActions
'number' => self::toJSON($arUser['PERSONAL_PHONE']),
'type' => 'mobile'
);
$phones[] = $phonePersonal;
if($phonePersonal['number'])
$phones[] = $phonePersonal;
$phoneWork = array(
'number' => self::toJSON($arUser['WORK_PHONE']),
'type' => 'work'
);
$phones[] = $phoneWork;
if($phoneWork['number'])
$phones[] = $phoneWork;
$customer = self::clearArr(array(
'externalId' => $arFields['USER_ID'],