* Finish task #97630.
This commit is contained in:
@@ -230,9 +230,10 @@ class testtaskModel extends model
|
||||
*/
|
||||
public function getExecutionTasks($executionID, $objectType = 'execution', $orderBy = 'id_desc', $pager = null)
|
||||
{
|
||||
return $this->dao->select('t1.*, t2.name AS buildName')
|
||||
return $this->dao->select('t1.*, t2.name AS buildName, t3.name AS productName')
|
||||
->from(TABLE_TESTTASK)->alias('t1')
|
||||
->leftJoin(TABLE_BUILD)->alias('t2')->on('t1.build = t2.id')
|
||||
->leftJoin(TABLE_PRODUCT)->alias('t3')->on('t1.product = t3.id')
|
||||
->where('t1.deleted')->eq(0)
|
||||
->beginIF($objectType == 'execution')->andWhere('t1.execution')->eq((int)$executionID)->fi()
|
||||
->beginIF($objectType == 'project')->andWhere('t1.project')->eq((int)$executionID)->fi()
|
||||
|
||||
Reference in New Issue
Block a user