Merge branch 'sprint/app10'
This commit is contained in:
@@ -1039,12 +1039,14 @@ class project extends control
|
||||
/**
|
||||
* Browse builds of a project.
|
||||
*
|
||||
* @param int $projectID
|
||||
* @param string $type all|product|bysearch
|
||||
* @param int $param
|
||||
* @param string $orderBy
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function build($projectID = 0, $type = 'all', $param = 0)
|
||||
public function build($projectID = 0, $type = 'all', $param = 0, $orderBy = 't1.date_desc,t1.id_desc')
|
||||
{
|
||||
/* Load module and get project. */
|
||||
$this->loadModel('build');
|
||||
@@ -1071,11 +1073,11 @@ class project extends control
|
||||
|
||||
if($type == 'bysearch')
|
||||
{
|
||||
$builds = $this->build->getProjectBuildsBySearch((int)$projectID, (int)$param);
|
||||
$builds = $this->build->getProjectBuildsBySearch((int)$projectID, (int)$param, $orderBy);
|
||||
}
|
||||
else
|
||||
{
|
||||
$builds = $this->build->getProjectBuilds((int)$projectID, $type, $param);
|
||||
$builds = $this->build->getProjectBuilds((int)$projectID, $type, $param, $orderBy);
|
||||
}
|
||||
|
||||
/* Set project builds. */
|
||||
|
||||
Reference in New Issue
Block a user