* adjust task #2681.

This commit is contained in:
chenfeiCF
2016-12-01 17:07:13 +08:00
parent 82b61dc1da
commit 2af603bac7
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -813,8 +813,7 @@ class taskModel extends model
$task->files = $this->loadModel('file')->getByObject('task', $taskID);
/* Get related test cases. */
$cases = $this->dao->select('id, title')->from(TABLE_CASE)->where('story')->eq($task->story)->andWhere('storyVersion')->eq($task->storyVersion)->fetchPairs();
if($cases) $task->cases = $cases;
if($task->story) $task->cases = $this->dao->select('id, title')->from(TABLE_CASE)->where('story')->eq($task->story)->andWhere('storyVersion')->eq($task->storyVersion)->fetchPairs();
return $this->processTask($task);
}