Skip to content

Commit

Permalink
Backendmenu: Fixing import of presets for menu items (ajaxbadge, dash…
Browse files Browse the repository at this point in the history
…board) (#43189)
  • Loading branch information
Hackwar committed Apr 27, 2024
1 parent 27ffec3 commit 26234f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions administrator/components/com_menus/src/Helper/MenusHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,14 @@ protected static function parseXmlNode($node, $replace = [])
$params->set('menu-quicktask-permission', (string) $node['quicktask-permission']);
}

if ($item->ajaxbadge) {
$params->set('ajax-badge', $item->ajaxbadge);
}

if ($item->dashboard) {
$params->set('dashboard', $item->dashboard);
}

// Translate attributes for iterator values
foreach ($replace as $var => $val) {
$item->title = str_replace("{sql:$var}", $val, $item->title);
Expand Down

0 comments on commit 26234f6

Please sign in to comment.