From f172fb17aa57a03b019f39379649ef3352af6d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Raye=CC=81?= <1337461+sylvainraye@users.noreply.github.com> Date: Thu, 8 Aug 2019 18:27:37 +0200 Subject: [PATCH] BUGFIX + Break Compatibility change: fix an issue with attributes not assigned to a family when the attributes has relations and its name is too long. The attribute code generated differ in AttributeImportStrategy and AttributeFamilyImportStrategy. It's a BC because on an existing installation, existing attributes may be duplicated with a different attribute code. --- ImportExport/Strategy/AttributeImportStrategy.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ImportExport/Strategy/AttributeImportStrategy.php b/ImportExport/Strategy/AttributeImportStrategy.php index 40a7f330..9b24e8e9 100644 --- a/ImportExport/Strategy/AttributeImportStrategy.php +++ b/ImportExport/Strategy/AttributeImportStrategy.php @@ -123,12 +123,6 @@ private function checkClassProperties(FieldConfigModel $entity): ?FieldConfigMod ) { return null; } - - // Field should get new fieldName @BC: Akeneo_Aken_1706289854 to Akeneo_bran_1706289854 - $fieldName = FieldConfigModelFieldNameGenerator::generate( - sprintf('%s_%s', $entity->getFieldName(), $entity->getType()) - ); - $entity->setFieldName($fieldName); } return $entity;