From cc2f33eb7bc220b2e092e34601e062f9449f617b Mon Sep 17 00:00:00 2001 From: ellynoize <111681973+ellynoize@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:30:49 +0600 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=B0=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=20Daemon=20collec?= =?UTF-8?q?tor=20(#227)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ VERSION | 2 +- retailcrm/lib/settings/RetailcrmSettingsValidator.php | 2 +- retailcrm/retailcrm.php | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff261ab..2822ad4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v3.6.10 +* Изменена валидация ключа коллектора + ## v3.6.9 * Добавлена проверка корректности введеного ключа при подключении Daemon Collector diff --git a/VERSION b/VERSION index cff2619..c47e8b5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.6.9 +3.6.10 diff --git a/retailcrm/lib/settings/RetailcrmSettingsValidator.php b/retailcrm/lib/settings/RetailcrmSettingsValidator.php index cc3f1f9..a7720a8 100644 --- a/retailcrm/lib/settings/RetailcrmSettingsValidator.php +++ b/retailcrm/lib/settings/RetailcrmSettingsValidator.php @@ -404,7 +404,7 @@ class RetailcrmSettingsValidator private function validateCollector($collectorActive, $collectorKey) { - return !$collectorActive || preg_match("/^RC-[0-9]{10}-[0-9]{1,2}$/", $collectorKey); + return !$collectorActive || preg_match('/^RC-[0-9]{11}-[0-9]{1,2}$/', $collectorKey); } private function addError($field, $message) diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index e3d7d26..0f9d440 100755 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -48,7 +48,7 @@ require_once dirname(__FILE__) . '/bootstrap.php'; class RetailCRM extends Module { - const VERSION = '3.6.9'; + const VERSION = '3.6.10'; const API_URL = 'RETAILCRM_ADDRESS'; const API_KEY = 'RETAILCRM_API_TOKEN';