* fix bug for change project in 1.5 menu.

This commit is contained in:
wangyidong
2022-10-09 08:23:26 +08:00
parent 7efbb7d6ca
commit 260a32bfad
+3 -1
View File
@@ -559,8 +559,10 @@ class projectModel extends model
public function getProjectLink($module, $method, $projectID)
{
$link = helper::createLink('project', 'index', "projectID=%s");
$project = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->eq($projectID)->fetch();
if(strpos(',project,product,projectstory,story,bug,doc,testcase,testtask,testreport,repo,build,projectrelease,stakeholder,issue,risk,meeting,report,measrecord', ',' . $module . ',') !== false)
if(empty($project->multiple)) return $link;
if(strpos(',project,product,projectstory,story,bug,doc,testcase,testtask,testreport,repo,build,projectrelease,stakeholder,issue,risk,meeting,report,measrecord,', ',' . $module . ',') !== false)
{
if($module == 'project' and $method == 'execution')
{