* Method Renaming 'Project' to 'Execution'.

This commit is contained in:
holan20180123
2020-11-20 10:59:49 +08:00
parent 17653d5053
commit 221a3ee96d
6 changed files with 180 additions and 181 deletions
+18 -1
View File
@@ -818,12 +818,29 @@ class programModel extends model
$project->executions = $this->project->getExecutionStats($projectID, $status, 0, 0, $itemCounts, $orderBy);
$project->teamCount = isset($teams[$projectID]) ? $teams[$projectID]->count : 0;
$project->estimate = isset($estimates[$projectID]) ? $estimates[$projectID]->estimate : 0;
$project->parentName = $this->project->getProjectParentName($project->parent);
$project->parentName = $this->getPRJParentName($project->parent);
}
return $projects;
}
/**
* Gets the top-level project name.
*
* @access private
* @return void
*/
public function getPRJParentName($parentID = 0)
{
if($parentID == 0) return '';
static $parent;
$parent = $this->dao->select('id,parent,name')->from(TABLE_PROJECT)->where('id')->eq($parentID)->fetch();
if($parent->parent) $this->getPRJParentName($parent->parent);
return $parent->name;
}
/**
* Get project overview for block.
*