* Adjust menu logic.

This commit is contained in:
zhujinyong
2021-03-21 12:15:55 +08:00
parent c014179539
commit a6eff425ca
49 changed files with 1212 additions and 1390 deletions
+17
View File
@@ -1584,4 +1584,21 @@ class projectModel extends model
return array_merge($parents, $orphan);
}
/**
* Set menu of project module.
*
* @param int $objectID projectID
* @access public
* @return void
*/
public function setMenu($objectID)
{
$project = $this->getByID($objectID);
$this->lang->project->menu = $this->lang->{$project->model}->menu;
$this->lang->project->menuOrder = $this->lang->{$project->model}->menuOrder;
$this->lang->switcherMenu = $this->getSwitcher($objectID, $this->app->rawModule, $this->app->rawMethod);
common::setMenuVars('project', $objectID);
}
}