From c210afd08647edbfb46e8e0368215ccf8e343b67 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 31 Oct 2017 10:29:05 +0000 Subject: [PATCH] (Regression) Fix display trouble for auto_reload menus. This was caused by a collision of HTML/DOM ids where the menu item of the left (accordion) menu had the same id as the div displaying the actual content in the right pane. This caused (when the id was a valid one !) the refresh of the content (list of objects) to occur INSIDE the accordion menu ! SVN:trunk[5121] --- application/menunode.class.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/menunode.class.inc.php b/application/menunode.class.inc.php index e6d8568351..67fc5dc6cd 100644 --- a/application/menunode.class.inc.php +++ b/application/menunode.class.inc.php @@ -174,7 +174,7 @@ class ApplicationMenu { $oMenuNode = self::GetMenuNode($aMenu['index']); if (!$oMenuNode->IsEnabled()) continue; // Don't display a non-enabled menu - $oPage->AddToMenu(''); + $oPage->AddToMenu('

'.$oMenuNode->GetTitle().'

'); $oPage->AddToMenu('
'); $aChildren = self::GetChildren($aMenu['index']); if (count($aChildren) > 0) @@ -217,11 +217,11 @@ EOF $sHyperlink = $oMenu->GetHyperlink($aExtraParams); if ($sHyperlink != '') { - $oPage->AddToMenu(''); + $oPage->AddToMenu('
  • '.$oMenu->GetTitle().'
  • '); } else { - $oPage->AddToMenu(''); + $oPage->AddToMenu('
  • '.$oMenu->GetTitle().'
  • '); } $aCurrentMenu = self::$aMenusIndex[$index]; if ($iActiveMenu == $index)