1
0
mirror of synced 2025-02-18 07:53:15 +03:00

fix convert charset for comments in orderCreate method

This commit is contained in:
Chernyavtsev Ivan 2014-05-28 16:13:24 +04:00
parent e04486e6db
commit d051204e4b

View File

@ -1072,6 +1072,11 @@ class ICrmOrderActions
$lastName = self::toJSON($arUser['LAST_NAME']); $lastName = self::toJSON($arUser['LAST_NAME']);
$patronymic = self::toJSON($arUser['SECOND_NAME']); $patronymic = self::toJSON($arUser['SECOND_NAME']);
// convert encoding for comment
$statusComment = self::toJson($arFields['REASON_CANCELED']);
$customerComment = self::toJson($arFields['USER_DESCRIPTION']);
$managerComment = self::toJson($arFields['COMMENTS']);
$phones = array(); $phones = array();
$phonePersonal = array( $phonePersonal = array(
@ -1278,9 +1283,9 @@ class ICrmOrderActions
'deliveryType' => $arParams['optionsDelivTypes'][$resultDeliveryTypeId], 'deliveryType' => $arParams['optionsDelivTypes'][$resultDeliveryTypeId],
'deliveryService' => ($arParams['optionsDelivTypes'][$resultDeliveryTypeId]) ? $deliveryService : '', 'deliveryService' => ($arParams['optionsDelivTypes'][$resultDeliveryTypeId]) ? $deliveryService : '',
'status' => $arParams['optionsPayStatuses'][$arFields['STATUS_ID']], 'status' => $arParams['optionsPayStatuses'][$arFields['STATUS_ID']],
'statusComment' => $arFields['REASON_CANCELED'], 'statusComment' => $statusComment,
'customerComment' => $arFields['USER_DESCRIPTION'], 'customerComment' => $customerComment,
'managerComment' => $arFields['COMMENTS'], 'managerComment' => $managerComment,
'createdAt' => $createdAt, 'createdAt' => $createdAt,
'deliveryAddress' => $resOrderDeliveryAddress, 'deliveryAddress' => $resOrderDeliveryAddress,
'discount' => $arFields['DISCOUNT_VALUE'], 'discount' => $arFields['DISCOUNT_VALUE'],