From 7008ac92f01db3f590965578d2b09821167d3201 Mon Sep 17 00:00:00 2001 From: Uryvskiy Dima Date: Tue, 25 Jul 2023 13:11:29 +0300 Subject: [PATCH] =?UTF-8?q?ref=20#91243=20=D0=98=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20=D0=BE=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC?= =?UTF-8?q?=D0=B5=20=D0=BB=D0=BE=D1=8F=D0=BB=D1=8C=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8=20=D0=B2=20=D0=BB=D0=B8=D1=87=D0=BD=D0=BE=D0=BC=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=B1=D0=B8=D0=BD=D0=B5=D1=82=D0=B5=20=D0=BA=D0=BB=D0=B8?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=20(#307)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ intaro.retailcrm/description.ru | 2 +- intaro.retailcrm/install/version.php | 4 ++-- intaro.retailcrm/lib/service/loyaltyaccountservice.php | 2 +- intaro.retailcrm/lib/service/loyaltyservice.php | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index baa62380..323f2d44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2023-07-25 v.6.3.20 +- Исправлена ошибка некорректного вывода информации о программе лояльности в личном кабинете клиента + ## 2023-07-21 v.6.3.19 - Добавлена возможность кастомизации генерации каталога diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 7467d64c..38d0a104 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Добавлена возможность кастомизации генерации каталога +- Исправлена ошибка некорректного вывода информации о программе лояльности в личном кабинете клиента \ No newline at end of file diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index 38acd700..b3fb9049 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.3.19', - 'VERSION_DATE' => '2023-07-21 11:30:00' + 'VERSION' => '6.3.20', + 'VERSION_DATE' => '2023-07-25 13:00:00' ]; diff --git a/intaro.retailcrm/lib/service/loyaltyaccountservice.php b/intaro.retailcrm/lib/service/loyaltyaccountservice.php index c0543f44..a0609437 100644 --- a/intaro.retailcrm/lib/service/loyaltyaccountservice.php +++ b/intaro.retailcrm/lib/service/loyaltyaccountservice.php @@ -163,7 +163,7 @@ class LoyaltyAccountService $getRequest = new LoyaltyAccountRequest(); $getRequest->filter = new LoyaltyAccountApiFilterType(); - $getRequest->filter->sites = $sitesAvailable; + $getRequest->filter->sites = is_array($sitesAvailable) ? $sitesAvailable : [$sitesAvailable]; $getRequest->filter->customerExternalId = (string)$userId; diff --git a/intaro.retailcrm/lib/service/loyaltyservice.php b/intaro.retailcrm/lib/service/loyaltyservice.php index a96afbf5..638c33f0 100644 --- a/intaro.retailcrm/lib/service/loyaltyservice.php +++ b/intaro.retailcrm/lib/service/loyaltyservice.php @@ -179,7 +179,7 @@ class LoyaltyService $request = new LoyaltyAccountRequest(); $request->filter = new LoyaltyAccountApiFilterType(); $request->filter->id = $idInLoyalty; - $request->filter->sites = $this->site; + $request->filter->sites = is_array($this->site) ? $this->site : [$this->site]; $response = $this->client->getLoyaltyAccounts($request);