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