* [refac] fix hasn't project session error.

This commit is contained in:
tianshujie
2025-09-11 08:41:16 +08:00
parent 4f90d0a899
commit 808aa4a4e8
+1 -1
View File
@@ -172,7 +172,7 @@ class doc extends control
$noSupport = false;
if($this->view->fromReport)
{
$project = $this->loadModel('project')->fetchByID($this->session->project);
$project = $this->loadModel('project')->fetchByID((int)$doc->project);
$noSupport = in_array($type, array('HLDS', 'DDS', 'DBDS', 'ADS')) && in_array($project->model, array('scrum', 'agileplus', 'kanban'));
}
$this->view->noSupport = $noSupport;