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);