From 1e4815d47a696176dc23b514b755ce1865f736fd Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Sat, 24 Jan 2026 08:42:16 +0100 Subject: [PATCH] Star working on category tree --- src/Controller/CategoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/CategoryController.php b/src/Controller/CategoryController.php index e600fd8..7f5669d 100644 --- a/src/Controller/CategoryController.php +++ b/src/Controller/CategoryController.php @@ -31,7 +31,7 @@ final class CategoryController extends BaseController $categoriesTree = $this->addToTree($product->categories, $categoriesTree); } - return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'category_' . $category]); + return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'category_' . $category, 'categoryTree' => $categoriesTree]); } private function addToTree(array $categories, mixed $categoriesTree)