Skip to content

Commit

Permalink
Versionnement du patch oroakeneo2.patch présent sur PROD et Stage
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Mar 21, 2024
1 parent b6db9d8 commit 14d5ccc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ImportExport/Writer/AttributeWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit 14d5ccc

Please sign in to comment.