* Finish task #69016.

This commit is contained in:
liuruogu
2022-09-15 02:42:40 +00:00
parent 5459e21d2e
commit 04cd8275fe
7 changed files with 20 additions and 0 deletions
+8
View File
@@ -851,6 +851,14 @@ class project extends control
$this->executeHooks($projectID);
if(empty($project->hasProduct))
{
$projectProduct = $this->dao->select('product')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetch()->product;
$this->lang->project->moduleMenu['link'] = sprintf($this->lang->project->moduleMenu['link'], $projectProduct);
$this->lang->project->menu->settings['subMenu']->tree = $this->lang->project->moduleMenu;
unset($this->lang->project->menu->settings['subMenu']->products);
}
$this->view->title = $this->lang->project->view;
$this->view->position = $this->lang->project->view;
$this->view->projectID = $projectID;