* Adjust program list actions get.

This commit is contained in:
caoyanyi
2023-09-15 13:16:39 +08:00
parent 359bb5199e
commit 54240c94cc
2 changed files with 26 additions and 73 deletions
+3 -3
View File
@@ -1522,9 +1522,9 @@ class programModel extends model
*/
public function buildActions($program)
{
if($program->type == 'program') return $this->programTao->buildProgramActionsMap($program);
if($program->type == 'project') return $this->programTao->buildProjectActionsMap($program);
return array();
$actionsMap = $this->programTao->buildProgramActionsMap($program);
if($program->type == 'project') $actionsMap += $this->programTao->buildProjectActionsMap($program);
return $actionsMap;
}
/**