瀏覽代碼

- Bug fix: make GetMenuIndexByTitle work !

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@491 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 年之前
父節點
當前提交
0405c62406
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      application/menunode.class.inc.php

+ 6 - 1
application/menunode.class.inc.php

@@ -185,7 +185,7 @@ class ApplicationMenu
 		$index = -1;
 		$index = -1;
 		foreach(self::$aMenusIndex as $aMenu)
 		foreach(self::$aMenusIndex as $aMenu)
 		{
 		{
-			if ($aMenu['node']->GetTitle() == $sTitle)
+			if ($aMenu['node']->GetRawTitle() == $sTitle)
 			{
 			{
 				$id = $aMenu['node']->GetIndex();
 				$id = $aMenu['node']->GetIndex();
 				break;
 				break;
@@ -258,6 +258,11 @@ abstract class MenuNode
 		$this->index = ApplicationMenu::InsertMenu($this, $iParentIndex, $fRank);
 		$this->index = ApplicationMenu::InsertMenu($this, $iParentIndex, $fRank);
 	}
 	}
 	
 	
+	public function GetRawTitle()
+	{
+		return $this->sTitle;
+	}
+	
 	public function GetTitle()
 	public function GetTitle()
 	{
 	{
 		return Dict::S($this->sTitle);
 		return Dict::S($this->sTitle);