From 6385a5231f36114794aae762dd43739019ea347d Mon Sep 17 00:00:00 2001 From: Thijs De Paepe Date: Wed, 22 Nov 2023 08:40:15 +0100 Subject: [PATCH] fix: Product Converter --- src/Component/Converter/Akeneo/Csv/Product.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Component/Converter/Akeneo/Csv/Product.php b/src/Component/Converter/Akeneo/Csv/Product.php index 8c6caf3e..4c795986 100644 --- a/src/Component/Converter/Akeneo/Csv/Product.php +++ b/src/Component/Converter/Akeneo/Csv/Product.php @@ -142,13 +142,13 @@ public function revert(array $item): array if (isset($item['enabled'])) { $output['enabled'] = $item['enabled']; } - if (array_key_exists($item['family'])) { + if (array_key_exists('family', $item)) { $output['family'] = $item['family']; } - if (array_key_exists($item['categories'])) { + if (array_key_exists('categories', $item)) { $output['categories'] = $item['categories']; } - if (array_key_exists($item['parent'])) { + if (array_key_exists('parent', $item)) { $output['parent'] = $item['parent']; } $output = $this->decoder->decode($output);