* Finish task#38911.
This commit is contained in:
@@ -492,6 +492,20 @@ class testtaskModel extends model
|
||||
->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get test report pairs by build.
|
||||
*
|
||||
* @param string $build
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getTestReportPairsByBuild($build = '')
|
||||
{
|
||||
if(empty($build)) return array();
|
||||
|
||||
return $this->dao->select('id,title')->from(TABLE_TESTREPORT)->where("CONCAT(',', builds, ',')")->like("%,$build,%")->fetchPairs('id','title');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get related test tasks.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user