* [task#148111,doing,0.2h] sprintf subsubMenu vars.

This commit is contained in:
sunguangming
2025-08-11 03:29:27 +00:00
parent 5dc566e7b8
commit c17cb7da78
2 changed files with 16 additions and 2 deletions
+5 -1
View File
@@ -82,7 +82,11 @@ class mainNavbar extends nav
$currentModule = $app->getModuleName();
$currentMethod = $app->getMethodName();
if($app->tab == 'admin') $app->control->loadModel('admin')->setMenu();
if($app->tab == 'admin')
{
$groupID = data('groupID');
$app->control->loadModel('admin')->setMenu((int)$groupID);
}
\commonModel::replaceMenuLang();
\commonModel::setMainMenu();
+11 -1
View File
@@ -134,7 +134,17 @@ class adminModel extends model
if($firstParam == $subMenuKey) $subModule = 'custom';
}
if(in_array($menuKey, array('projectflow', 'productflow')) && $groupID) $subMenu['link'] = sprintf($subMenu['link'], $groupID);
if(in_array($menuKey, array('projectflow', 'productflow')) && $groupID)
{
$subMenu['link'] = sprintf($subMenu['link'], $groupID);
if(isset($subMenu['subMenu']))
{
foreach($subMenu['subMenu'] as $subSubMenuKey => $subSubMenu)
{
$subMenu['subMenu'][$subSubMenuKey]['link'] = sprintf($subSubMenu['link'], $groupID);
}
}
}
if(!empty($subModule)) $subMenu['subModule'] = $subModule;
if(isset($this->lang->admin->menuList->{$menuKey}['tabMenu'][$subMenuKey]))