From 50997b729fdf3a0c3d931bc7ec1d01b88286dbb1 Mon Sep 17 00:00:00 2001 From: Kocmonavtik <61938582+Kocmonavtik@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:04:26 +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=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=A4=D0=98=D0=9E=20=D0=BF=D1=80=D0=B8=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B5=20=D0=B7=D0=B0=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D0=B0=20=D0=B2=20=D1=81=D0=B8=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=BC=D1=83=20(#338)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php | 4 ++-- intaro.retailcrm/description.ru | 2 +- intaro.retailcrm/install/version.php | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 476dbc22..6aebd186 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2024-03-01 v.6.5.9 +- Исправлена проверка ФИО при отправке заказа в систему + ## 2024-02-05 v.6.5.8 - Удалена возможность выбора свойств с множественным выбором в настройках экспорта каталога diff --git a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php index 9521e218..f11a4ec3 100644 --- a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php +++ b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php @@ -435,11 +435,11 @@ class RetailCrmOrder $fioCrm = [$order['firstName'] ?? null, $order['lastName'] ?? null, $order['patronymic'] ?? null]; - if ($arUser['NAME'] !== '' && in_array($arUser['NAME'], $fioCrm)) { + if (!empty($arUser['NAME']) && in_array($arUser['NAME'], $fioCrm)) { $order['firstName'] = $arUser['NAME']; } - if ($arUser['LAST_NAME'] !== '' && in_array($arUser['LAST_NAME'], $fioCrm)) { + if (!empty($arUser['LAST_NAME']) && in_array($arUser['LAST_NAME'], $fioCrm)) { $order['lastName'] = $arUser['LAST_NAME']; } diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index affbc00d..c251066d 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Удалена возможность выбора свойств с множественным выбором в настройках экспорта каталога +- Исправлена проверка ФИО при отправке заказа в систему diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index a76434bf..e4f6dae3 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.5.8', - 'VERSION_DATE' => '2024-02-05 17:00:00' + 'VERSION' => '6.5.9', + 'VERSION_DATE' => '2024-03-01 12:30:00' ];