In the 'context', pass menus by ID and no longer by index.

SVN:trunk[2143]
This commit is contained in:
Denis Flaven
2012-07-31 14:06:38 +00:00
parent 2b5c7a7f59
commit c612732037
2 changed files with 2 additions and 2 deletions

View File

@@ -2159,7 +2159,7 @@ EOF
///////////////////////////////////////////////////////////////////////////////////////////
default: // Menu node rendering (templates)
$oMenuNode = ApplicationMenu::GetMenuNode(ApplicationMenu::GetActiveNodeId());
$oMenuNode = ApplicationMenu::GetMenuNode(ApplicationMenu::GetMenuIndexById(ApplicationMenu::GetActiveNodeId()));
if (is_object($oMenuNode))
{

View File

@@ -824,7 +824,7 @@ try
// navigate to the dashboard page
if ($aValues['open_editor'])
{
$oPage->add_ready_script("window.location.href='".addslashes(utils::GetAbsoluteUrlAppRoot().'pages/UI.php?c[menu]='.$index)."&edit=1';"); // reloads the page, doing a GET even if we arrived via a POST
$oPage->add_ready_script("window.location.href='".addslashes(utils::GetAbsoluteUrlAppRoot().'pages/UI.php?c[menu]='.urlencode($sMenuId))."&edit=1';"); // reloads the page, doing a GET even if we arrived via a POST
}
}
break;