From a264a6c859eb6ca7f549d4f9f5c2122f7376a1b3 Mon Sep 17 00:00:00 2001
From: "michael.danielczok" <michael@pcsg.de>
Date: Mon, 9 May 2022 10:48:00 +0200
Subject: [PATCH] fix: Independent sub menu added correct to cache.

---
 src/QUI/Menu/MegaMenu.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/QUI/Menu/MegaMenu.php b/src/QUI/Menu/MegaMenu.php
index 2e3c8e7..5c330a7 100644
--- a/src/QUI/Menu/MegaMenu.php
+++ b/src/QUI/Menu/MegaMenu.php
@@ -152,6 +152,8 @@ public function getBody()
 
             $result         = [];
             $result['html'] = $Engine->fetch(dirname(__FILE__).'/MegaMenu.Independent.html');
+            $result['subMenus'] = \array_unique($this->subMenus);
+
         } else {
             $Engine->assign([
                 'this'         => $this,
-- 
GitLab