mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°7417 - Improve error message when a Root Menu is not a MenuGroup
This commit is contained in:
@@ -280,9 +280,11 @@ class ApplicationMenu
|
|||||||
$oMenuNode = static::GetMenuNode($sMenuGroupIdx);
|
$oMenuNode = static::GetMenuNode($sMenuGroupIdx);
|
||||||
|
|
||||||
if (!($oMenuNode instanceof MenuGroup)) {
|
if (!($oMenuNode instanceof MenuGroup)) {
|
||||||
IssueLog::Error('Menu node was not displayed as a menu group as it is actually not a menu group', LogChannels::CONSOLE, [
|
IssueLog::Error('Menu node without parent (root menu) must be of type menu group. Parent menu is missing or not visible to user.', LogChannels::CONSOLE, [
|
||||||
'menu_node_class' => get_class($oMenuNode),
|
'menu_node_class' => get_class($oMenuNode),
|
||||||
|
'menu_node_id' => $oMenuNode->GetMenuID(),
|
||||||
'menu_node_label' => $oMenuNode->GetLabel(),
|
'menu_node_label' => $oMenuNode->GetLabel(),
|
||||||
|
'current_user_id' => UserRights::GetUserId(),
|
||||||
]);
|
]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user