From efe61201e5bd11694284256855337997ba8a0e01 Mon Sep 17 00:00:00 2001 From: vdumas Date: Fri, 5 Apr 2024 18:20:19 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07417=20-=20Improve=20error=20message=20w?= =?UTF-8?q?hen=20a=20Root=20Menu=20is=20not=20a=20MenuGroup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/menunode.class.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/menunode.class.inc.php b/application/menunode.class.inc.php index 244209db6..a47a495a4 100644 --- a/application/menunode.class.inc.php +++ b/application/menunode.class.inc.php @@ -280,9 +280,11 @@ class ApplicationMenu $oMenuNode = static::GetMenuNode($sMenuGroupIdx); 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_id' => $oMenuNode->GetMenuID(), 'menu_node_label' => $oMenuNode->GetLabel(), + 'current_user_id' => UserRights::GetUserId(), ]); continue; }