Adminmenu: Fix export for child items (#43178)

This commit is contained in:
Hannes Papenberg 2024-04-27 13:18:37 +02:00 committed by GitHub
parent 886611d4e7
commit 27ffec3090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ class XmlView extends BaseHtmlView
return;
}
$this->items = $root->getChildren(true);
$this->items = $root->getChildren();
$xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" ?><menu ' .
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' .
@ -146,8 +146,8 @@ class XmlView extends BaseHtmlView
$node->addChild('params', htmlentities((string) $item->getParams(), ENT_XML1));
}
if (isset($item->submenu)) {
foreach ($item->submenu as $sub) {
if ($item->hasChildren()) {
foreach ($item->getChildren() as $sub) {
$this->addXmlChild($node, $sub);
}
}