Merge branch '18.8.1' into 18.x
This commit is contained in:
@@ -2665,6 +2665,19 @@ class executionModel extends model
|
||||
return $execution;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get execution by build id.
|
||||
*
|
||||
* @param int $buildID
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getByBuild($buildID)
|
||||
{
|
||||
$build = $this->loadModel('build')->getById($buildID);
|
||||
return $this->getById($build->execution);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default managers for a execution from it's related products.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user