From 5c94edd285af9392f0c12ffca29f1e1e80791d84 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Tue, 7 May 2019 16:41:57 +0300 Subject: [PATCH] fixed generating icml bug highload block without sku --- intaro.retailcrm/export/export_setup.php | 2 +- intaro.retailcrm/install/step5.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/intaro.retailcrm/export/export_setup.php b/intaro.retailcrm/export/export_setup.php index c7116602..10c11f56 100644 --- a/intaro.retailcrm/export/export_setup.php +++ b/intaro.retailcrm/export/export_setup.php @@ -740,7 +740,7 @@ if (file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/expor BX(obj.id.replace('SKU','PRODUCT')).value = 'none'; var bid = obj.id.replace('SKU','PRODUCT'); $("#" + bid).siblings('#highloadblock').remove(); - } else { + } else if(BX(obj.id.replace('PRODUCT','SKU'))) { BX(obj.id.replace('PRODUCT','SKU')).value = 'none'; var bid = obj.id.replace('PRODUCT','SKU'); $("#" + bid).siblings('#highloadblock').remove(); diff --git a/intaro.retailcrm/install/step5.php b/intaro.retailcrm/install/step5.php index 6fa29689..310f2663 100644 --- a/intaro.retailcrm/install/step5.php +++ b/intaro.retailcrm/install/step5.php @@ -595,7 +595,7 @@ if (!empty($oldValues)) { BX(obj.id.replace('SKU','PRODUCT')).value = 'none'; var bid = obj.id.replace('SKU','PRODUCT'); $("#" + bid).siblings('#highloadblock').remove(); - } else { + } else if(BX(obj.id.replace('PRODUCT','SKU'))){ BX(obj.id.replace('PRODUCT','SKU')).value = 'none'; var bid = obj.id.replace('PRODUCT','SKU'); $("#" + bid).siblings('#highloadblock').remove();