From df30e94cc6c7bae140d7be1843df6b3ef98666da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20S=C3=A9ghair?= Date: Wed, 6 May 2026 17:27:56 +0200 Subject: [PATCH 1/3] fix: Undefined array key "id_product_attribute" --- classes/Provider/EventDataProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Provider/EventDataProvider.php b/classes/Provider/EventDataProvider.php index 3a7d30bec..43d05cd57 100644 --- a/classes/Provider/EventDataProvider.php +++ b/classes/Provider/EventDataProvider.php @@ -222,7 +222,7 @@ private function getCategoryPageData() foreach ($prods as $product) { $contentIds[] = ProductCatalogUtility::makeProductId( $product['id_product'], - $product['id_product_attribute'] + $product['id_product_attribute'] ?: null ); } } From 033e0b1de081f4e989269498b8d9827f9a0bce78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20S=C3=A9ghair?= Date: Wed, 6 May 2026 17:32:36 +0200 Subject: [PATCH 2/3] use null coalescing --- classes/Provider/EventDataProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Provider/EventDataProvider.php b/classes/Provider/EventDataProvider.php index 43d05cd57..0afe379e7 100644 --- a/classes/Provider/EventDataProvider.php +++ b/classes/Provider/EventDataProvider.php @@ -231,7 +231,7 @@ private function getCategoryPageData() 'content_name' => \Tools::replaceAccentedChars($category->name) . ' ' . $this->locale, 'content_category' => \Tools::replaceAccentedChars($breadcrumb), 'content_type' => self::CATEGORY_TYPE, - 'content_ids' => $contentIds ?: null, + 'content_ids' => $contentIds ?? null, ]; return [ From 681d39ff99ecf74771a63068bc9ce1bdebac9ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20S=C3=A9ghair?= Date: Wed, 6 May 2026 17:37:38 +0200 Subject: [PATCH 3/3] use null coalescing --- classes/Provider/EventDataProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Provider/EventDataProvider.php b/classes/Provider/EventDataProvider.php index 0afe379e7..4e7631072 100644 --- a/classes/Provider/EventDataProvider.php +++ b/classes/Provider/EventDataProvider.php @@ -222,7 +222,7 @@ private function getCategoryPageData() foreach ($prods as $product) { $contentIds[] = ProductCatalogUtility::makeProductId( $product['id_product'], - $product['id_product_attribute'] ?: null + $product['id_product_attribute'] ?? null ); } } @@ -231,7 +231,7 @@ private function getCategoryPageData() 'content_name' => \Tools::replaceAccentedChars($category->name) . ' ' . $this->locale, 'content_category' => \Tools::replaceAccentedChars($breadcrumb), 'content_type' => self::CATEGORY_TYPE, - 'content_ids' => $contentIds ?? null, + 'content_ids' => $contentIds ?: null, ]; return [