empty phones fix
This commit is contained in:
parent
7cdda7aa11
commit
270bb72c9d
@ -704,12 +704,16 @@ class ICrmOrderActions
|
|||||||
'number' => self::toJSON($arUser['PERSONAL_PHONE']),
|
'number' => self::toJSON($arUser['PERSONAL_PHONE']),
|
||||||
'type' => 'mobile'
|
'type' => 'mobile'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if($phonePersonal['number'])
|
||||||
$phones[] = $phonePersonal;
|
$phones[] = $phonePersonal;
|
||||||
|
|
||||||
$phoneWork = array(
|
$phoneWork = array(
|
||||||
'number' => self::toJSON($arUser['WORK_PHONE']),
|
'number' => self::toJSON($arUser['WORK_PHONE']),
|
||||||
'type' => 'work'
|
'type' => 'work'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if($phoneWork['number'])
|
||||||
$phones[] = $phoneWork;
|
$phones[] = $phoneWork;
|
||||||
|
|
||||||
$customer = self::clearArr(array(
|
$customer = self::clearArr(array(
|
||||||
|
Loading…
Reference in New Issue
Block a user