From b7c54305bc832cb613698f3d4ab8fcb1e0fe4f80 Mon Sep 17 00:00:00 2001 From: "a.belikin" Date: Thu, 14 Nov 2024 19:37:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=83?= =?UTF-8?q?=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=B8=20=D1=81=D0=B2=D0=BE=D0=B9=D1=81=D1=82=D0=B2?= =?UTF-8?q?=20=D0=B8=D0=B7=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=8B.?= =?UTF-8?q?=20=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=20=D0=B4=D0=B5=D0=BB=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20id=20=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=D0=B2=20=D0=B8=D0=B7=20=D1=82=D0=B0=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- intaro.retailcrm/export/export_run.php | 2 +- intaro.retailcrm/export/export_setup.php | 11 +- .../lib/controller/customexportprops.php | 8 +- intaro.retailcrm/lib/icml/settingsservice.php | 178 ++++++++++-------- intaro.retailcrm/lib/icml/xmlofferbuilder.php | 2 +- tests/lib/icml/SettingServiceTest.php | 4 +- 6 files changed, 114 insertions(+), 91 deletions(-) diff --git a/intaro.retailcrm/export/export_run.php b/intaro.retailcrm/export/export_run.php index 22c74766..13bc75d8 100644 --- a/intaro.retailcrm/export/export_run.php +++ b/intaro.retailcrm/export/export_run.php @@ -46,7 +46,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/retailcrm/exp $iblockPropertyProductHl = []; $iblockPropertyUnitProduct = []; - foreach (array_keys($settingService->actrualPropList) as $prop) { + foreach (array_keys($settingService->actualPropList) as $prop) { $skuUnitProps = ('iblockPropertyUnitSku_' . $prop); $skuUnitProps = $$skuUnitProps; diff --git a/intaro.retailcrm/export/export_setup.php b/intaro.retailcrm/export/export_setup.php index 1091b5e5..cda81a72 100644 --- a/intaro.retailcrm/export/export_setup.php +++ b/intaro.retailcrm/export/export_setup.php @@ -473,6 +473,7 @@ if ($STEP === 1) { } ?> customPropList[$catalogId]; @@ -555,7 +556,9 @@ if ($STEP === 1) { - + @@ -664,7 +667,7 @@ if ($STEP === 1) { assertInstanceOf(SettingsService::class, $settingService); - $this->assertArrayHasKey('property1', $settingService->actrualPropList); - $this->assertArrayHasKey('property2', $settingService->actrualPropList); + $this->assertArrayHasKey('property1', $settingService->actualPropList); + $this->assertArrayHasKey('property2', $settingService->actualPropList); return $settingService; }