diff --git a/CHANGELOG.md b/CHANGELOG.md index f2335577..95d89858 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2024-10-21 v6.5.34 +- Исправлена ошибка агента выгрузки изменений при наличии у заказа клиента без магазина + ## 2024-10-14 v6.5.33 - Добавлена передача дополнительных параметров в GET запросах diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index b2cdc67a..78ae0d41 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -1015,6 +1015,14 @@ class RetailCrmHistory $order['site'] ); + if (!$response) { + Logger::getInstance()->write( + sprintf('Заказ %s не выгружен. Не удалось получить клиента', $order['id']), + 'orderAgent' + ); + continue; + } + $newUser = new CUser(); $customerBuilder = new CustomerBuilder(); $customerBuilder->setDataCrm($response['customer'])->build(); diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index c5b7ed75..7f8c92f2 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Добавлена передача дополнительных параметров в GET запросах +- Исправлена ошибка агента выгрузки изменений при наличии у заказа клиента без магазина diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index bb690a8c..9df2c561 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.5.33', - 'VERSION_DATE' => '2024-10-14 17:00:00' + 'VERSION' => '6.5.34', + 'VERSION_DATE' => '2024-10-21 17:00:00' ]; diff --git a/intaro.retailcrm/lib/component/constants.php b/intaro.retailcrm/lib/component/constants.php index 34ec5925..6011b85c 100644 --- a/intaro.retailcrm/lib/component/constants.php +++ b/intaro.retailcrm/lib/component/constants.php @@ -18,7 +18,7 @@ namespace Intaro\RetailCrm\Component; */ class Constants { - public const MODULE_VERSION = '6.5.33'; + public const MODULE_VERSION = '6.5.34'; public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null'; public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-'; public const CRM_USERS_MAP = 'crm_users_map';