* Adjuct code for feedback #1836.

This commit is contained in:
liuhong
2023-02-03 06:09:53 +00:00
parent cf5c7a2fbc
commit 27a5843cad
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -2722,16 +2722,18 @@ class taskModel extends model
*
* @param int $storyID
* @param int $executionID
* @param int $projectID
* @access public
* @return array
*/
public function getStoryTasks($storyID, $executionID = 0)
public function getStoryTasks($storyID, $executionID = 0, $projectID = 0)
{
$tasks = $this->dao->select('id, parent, name, assignedTo, pri, status, estimate, consumed, closedReason, `left`')
->from(TABLE_TASK)
->where('story')->eq((int)$storyID)
->andWhere('deleted')->eq(0)
->beginIF($executionID)->andWhere('execution')->eq($executionID)->fi()
->beginIF($projectID)->andWhere('project')->eq($projectID)->fi()
->fetchAll('id');
$parents = array();