* Finish task #83956.
This commit is contained in:
@@ -1498,6 +1498,21 @@ class programplanModel extends model
|
||||
return $subStageList ? false : true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change whether it is the top stage.
|
||||
*
|
||||
* @param int $planID
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
public function checkTopStage($planID)
|
||||
{
|
||||
$parentID = $this->dao->select('parent')->from(TABLE_EXECUTION)->where('id')->eq($planID)->fetch('parent');
|
||||
$parentType = $this->dao->select('type')->from(TABLE_EXECUTION)->where('id')->eq($parentID)->fetch('type');
|
||||
|
||||
return $parentType == 'project';
|
||||
}
|
||||
|
||||
/**
|
||||
* Update sub-stage attribute.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user