* [story #68106, doing] support for fetching space data of execution.

This commit is contained in:
sunhao
2024-10-16 09:43:47 +08:00
committed by 刘刚
parent 4b3cf9faec
commit c09fb2e2b1
+5
View File
@@ -1213,6 +1213,11 @@ class docModel extends model
$pairs = $this->loadModel('project')->getPairsByProgram();
$spaceID = $this->project->checkAccess($spaceID, $pairs);
}
if($type === 'execution' && $spaceID)
{
$execution = $this->loadModel('execution')->getByID($spaceID);
$pairs = array($execution->id => $execution->name);
}
$spaces = array();
foreach($pairs as $id => $name) $spaces[] = array('type' => $type, 'id' => $id, 'name' => $name);