1
0
Fork 0
mirror of synced 2025-04-04 14:23:33 +03:00

ref #91040 исправление передачи подписки пользователя-гостя

This commit is contained in:
Ivan Chaplygin 2023-07-20 09:59:52 +03:00
parent acb553eb0c
commit ec7461be1a

View file

@ -27,7 +27,6 @@ class RetailCrmUser
$customer = self::getSimpleCustomer($arFields);
$customer['createdAt'] = new \DateTime($arFields['DATE_REGISTER']);
$customer['subscribed'] = false;
$customer['contragent'] = ['contragentType' => $contragentType];
if ($send && isset($_COOKIE['_rc']) && $_COOKIE['_rc'] != '') {
@ -49,6 +48,10 @@ class RetailCrmUser
$normalizer = new RestNormalizer();
$customer = $normalizer->normalize($customer, 'customers');
if (empty($arFields['UF_SUBSCRIBE_USER_EMAIL'])) {
$customer['subscribed'] = false;
}
Logger::getInstance()->write($customer, 'customerSend');
if (