diff --git a/ImportExport/Writer/AttributeWriter.php b/ImportExport/Writer/AttributeWriter.php index 6736e983..750178b7 100644 --- a/ImportExport/Writer/AttributeWriter.php +++ b/ImportExport/Writer/AttributeWriter.php @@ -260,6 +260,7 @@ protected function setAttributeData(FieldConfigModel $fieldConfigModel) $extendConfig = $extendProvider->getConfig($className, $fieldName); $attributeConfig->remove('organization_id'); //TODO Check if it' accurate to remove this id (kiboko custo ?) + $attributeConfig->set('is_global', true); if ($extendConfig->is('state', ExtendScope::STATE_NEW)) { $type = $this->attributeTypeRegistry->getAttributeType($fieldConfigModel); @@ -276,8 +277,8 @@ protected function setAttributeData(FieldConfigModel $fieldConfigModel) $attributeConfig->set('visible', false); $attributeConfig->set('enabled', false); - $attributeConfig->set('is_global', false); - $attributeConfig->set('organization_id', $this->getOrganizationId()); +// $attributeConfig->set('is_global', false); +// $attributeConfig->set('organization_id', $this->getOrganizationId()); } $attributeConfig->set('field_name', $fieldName);