Исправлена ошибка при передаче подписки на рекламно-информационные рассылки (#324)
This commit is contained in:
parent
748ebdf4a3
commit
18a10bf916
@ -1,3 +1,6 @@
|
||||
## 2023-10-25 v.6.4.11
|
||||
- Исправлена ошибка при передаче подписки на рекламно-информационные рассылки
|
||||
|
||||
## 2023-10-25 v.6.4.10
|
||||
- Добавлена передача трек-номера в заказе из CRM в Bitrix
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
[![Build Status](https://github.com/retailcrm/bitrix-module/workflows/ci/badge.svg)](https://github.com/retailcrm/bitrix-module/actions)
|
||||
[![GitHub release](https://img.shields.io/github/release/retailcrm/bitrix-module.svg?logo=github)](https://github.com/retailcrm/bitrix-module/releases)
|
||||
[![Coverage](https://img.shields.io/codecov/c/gh/retailcrm/bitrix-module/master.svg?logo=codecov)](https://codecov.io/gh/retailcrm/bitrix-module)
|
||||
[![PHP version](https://img.shields.io/badge/PHP->=7.4-blue.svg?logo=php)](https://php.net/)
|
||||
[![PHP version](https://img.shields.io/badge/PHP->=8.0-blue.svg?logo=php)](https://php.net/)
|
||||
|
||||
Bitrix module
|
||||
=============
|
||||
|
@ -287,7 +287,7 @@ class RetailCrmEvent
|
||||
$userCrm = RCrmActions::apiMethod($api, 'customersGet', __METHOD__, $arOrder['USER_ID'], $site);
|
||||
|
||||
if (!isset($userCrm['customer'])) {
|
||||
$arUser = UserTable::getById($arOrder['USER_ID'])->fetch();
|
||||
$arUser = CUser::GetByID($arOrder['USER_ID'])->Fetch();
|
||||
|
||||
if (!empty($address)) {
|
||||
$arUser['PERSONAL_STREET'] = $address;
|
||||
@ -412,7 +412,8 @@ class RetailCrmEvent
|
||||
$userCrm = RCrmActions::apiMethod($api, 'customersGet', __METHOD__, $arOrder['USER_ID'], $site);
|
||||
|
||||
if (!isset($userCrm['customer'])) {
|
||||
$arUser = Bitrix\Main\UserTable::getById($arOrder['USER_ID'])->fetch();
|
||||
$arUser = CUser::GetByID($arOrder['USER_ID'])->Fetch();
|
||||
|
||||
$resultUser = RetailCrmUser::customerSend(
|
||||
$arUser,
|
||||
$api,
|
||||
@ -429,7 +430,7 @@ class RetailCrmEvent
|
||||
);
|
||||
|
||||
return null;
|
||||
}http://localhost/personal/cart/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,8 +48,9 @@ class RetailCrmUser
|
||||
$normalizer = new RestNormalizer();
|
||||
$customer = $normalizer->normalize($customer, 'customers');
|
||||
|
||||
if (empty($arFields['UF_SUBSCRIBE_USER_EMAIL'])) {
|
||||
$customer['subscribed'] = false;
|
||||
if (array_key_exists('UF_SUBSCRIBE_USER_EMAIL', $arFields)) {
|
||||
// UF_SUBSCRIBE_USER_EMAIL = '1' or '0'
|
||||
$customer['subscribed'] = (bool) $arFields['UF_SUBSCRIBE_USER_EMAIL'];
|
||||
}
|
||||
|
||||
Logger::getInstance()->write($customer, 'customerSend');
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$arModuleVersion = [
|
||||
'VERSION' => '6.4.10',
|
||||
'VERSION_DATE' => '2023-10-25 15:00:00'
|
||||
'VERSION' => '6.4.11',
|
||||
'VERSION_DATE' => '2023-12-08 13:00:00'
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user