diff --git a/CHANGELOG.md b/CHANGELOG.md index d9f11a30..0b34a84d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2026-03-16 v6.7.9 +- Добавлена дополнительная проверка на наличие подписки у пользователя + ## 2026-01-21 v6.7.8 - Добавлена передача даты рождения клиента в CRM diff --git a/intaro.retailcrm/classes/general/user/RetailCrmUser.php b/intaro.retailcrm/classes/general/user/RetailCrmUser.php index 0aae7191..ea3501b1 100644 --- a/intaro.retailcrm/classes/general/user/RetailCrmUser.php +++ b/intaro.retailcrm/classes/general/user/RetailCrmUser.php @@ -175,7 +175,7 @@ private static function getSimpleCustomer(array $arFields): array private static function getBooleanFields($customer, $arFields) { if (isset($arFields['UF_SUBSCRIBE_USER_EMAIL'])) { - if ($arFields['UF_SUBSCRIBE_USER_EMAIL'] === "1") { + if ($arFields['UF_SUBSCRIBE_USER_EMAIL'] === "1" || $arFields['UF_SUBSCRIBE_USER_EMAIL'] === true) { $customer['subscribed'] = true; } else { $customer['subscribed'] = false; diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 7e543a01..3355cbab 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Добавлена передача даты рождения клиента в CRM +- Добавлена дополнительная проверка на наличие подписки у пользователя diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index b8d44fe6..5ccfb0cd 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.7.8', - 'VERSION_DATE' => '2026-01-21 12:30:00' + 'VERSION' => '6.7.9', + 'VERSION_DATE' => '2026-03-16 17:30:00' ]; diff --git a/intaro.retailcrm/lib/component/constants.php b/intaro.retailcrm/lib/component/constants.php index 086a7158..5a6a8dfe 100644 --- a/intaro.retailcrm/lib/component/constants.php +++ b/intaro.retailcrm/lib/component/constants.php @@ -18,7 +18,7 @@ */ class Constants { - public const MODULE_VERSION = '6.7.8'; + public const MODULE_VERSION = '6.7.9'; public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null'; public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-'; public const CRM_USERS_MAP = 'crm_users_map';