From 115cf33423ebe26ea5f872e2fb3426bb99d3902f Mon Sep 17 00:00:00 2001 From: Kocmonavtik <61938582+Kocmonavtik@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:11:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20API=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=BF=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B5=20=D1=81=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=D1=81=D0=BA=D0=B8=D0=BC=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8F=D0=BC=D0=B8=20(#377)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ intaro.retailcrm/classes/general/ApiClient_v5.php | 4 ++-- intaro.retailcrm/description.ru | 2 +- intaro.retailcrm/install/version.php | 4 ++-- intaro.retailcrm/lib/component/constants.php | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eccd6942..5a1b2c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2024-12-17 v6.6.1 +- Исправлены API методы по взаимодействию с пользовательскими полями и справочниками + ## 2024-12-09 v6.6.0 - Добавлено динамическое изменение свойств товаров при настройке экспорта diff --git a/intaro.retailcrm/classes/general/ApiClient_v5.php b/intaro.retailcrm/classes/general/ApiClient_v5.php index cfcb3d89..c464d4cf 100644 --- a/intaro.retailcrm/classes/general/ApiClient_v5.php +++ b/intaro.retailcrm/classes/general/ApiClient_v5.php @@ -1508,7 +1508,7 @@ class ApiClient } return $this->client->makeRequest( - "/custom-fields/$entity/edit/{$customField['code']}", + "/custom-fields/$entity/{$customField['code']}/edit", Client::METHOD_POST, array('customField' => json_encode($customField)) ); @@ -1591,7 +1591,7 @@ class ApiClient } return $this->client->makeRequest( - "/custom-fields/dictionaries/{$customDictionary['code']}/create", + "/custom-fields/dictionaries/create", Client::METHOD_POST, array('customDictionary' => json_encode($customDictionary)) ); diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 18aaf57b..b7570130 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Добавлено динамическое изменение свойств товаров при настройке экспорта +- Исправлены API методы по взаимодействию с пользовательскими полями и справочниками diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index f8b6d402..c35d6152 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.6.0', - 'VERSION_DATE' => '2024-12-09 14:00:00' + 'VERSION' => '6.6.1', + 'VERSION_DATE' => '2024-12-17 13:00:00' ]; diff --git a/intaro.retailcrm/lib/component/constants.php b/intaro.retailcrm/lib/component/constants.php index 5e706b51..327d22f0 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.39'; + public const MODULE_VERSION = '6.6.1'; public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null'; public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-'; public const CRM_USERS_MAP = 'crm_users_map';