mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
- Bug fix: make GetMenuIndexByTitle work !
SVN:trunk[491]
This commit is contained in:
@@ -185,7 +185,7 @@ class ApplicationMenu
|
||||
$index = -1;
|
||||
foreach(self::$aMenusIndex as $aMenu)
|
||||
{
|
||||
if ($aMenu['node']->GetTitle() == $sTitle)
|
||||
if ($aMenu['node']->GetRawTitle() == $sTitle)
|
||||
{
|
||||
$id = $aMenu['node']->GetIndex();
|
||||
break;
|
||||
@@ -258,6 +258,11 @@ abstract class MenuNode
|
||||
$this->index = ApplicationMenu::InsertMenu($this, $iParentIndex, $fRank);
|
||||
}
|
||||
|
||||
public function GetRawTitle()
|
||||
{
|
||||
return $this->sTitle;
|
||||
}
|
||||
|
||||
public function GetTitle()
|
||||
{
|
||||
return Dict::S($this->sTitle);
|
||||
|
||||
Reference in New Issue
Block a user