diff --git a/intaro.retailcrm/export/export_setup.php b/intaro.retailcrm/export/export_setup.php index adc7f3f1..f8c9d5fc 100644 --- a/intaro.retailcrm/export/export_setup.php +++ b/intaro.retailcrm/export/export_setup.php @@ -190,8 +190,7 @@ if ($STEP === 1) { defaultPropList as $propertyKey => $property) { - $productSelected = false; ?> + foreach ($settingsService->defaultPropList as $propertyKey => $property) { ?> @@ -215,14 +214,14 @@ if ($STEP === 1) { if ($keyField === $propertyKey) { ?> @@ -241,7 +240,7 @@ if ($STEP === 1) { getOptionClass($prop, true); - $productSelected = $settingsService->isOptionSelected( + $isSelected = $settingsService->isOptionSelected( $prop, $arIBlock['OLD_PROPERTY_PRODUCT_SELECT'], $propertyKey @@ -251,7 +250,7 @@ if ($STEP === 1) { = $settingsService->getHlTableName($prop) ?? $productHlTableName; - echo $productSelected ? ' selected' : ''; + echo $isSelected ? ' selected' : ''; ?> > @@ -376,19 +375,18 @@ if ($STEP === 1) {