* Code for release-build bug.
This commit is contained in:
@@ -310,13 +310,23 @@ class build extends control
|
||||
|
||||
$this->executeHooks($buildID);
|
||||
|
||||
$buildIdList = $build->execution ? array() : array($buildID => $buildID);
|
||||
$objectType = 'execution';
|
||||
$objectID = $build->execution;
|
||||
if($build->project and $this->app->tab == 'project')
|
||||
{
|
||||
$project = $this->project->getByID($build->project);
|
||||
if(!$project->multiple)
|
||||
{
|
||||
$objectType = 'project';
|
||||
$objectID = $build->project;
|
||||
}
|
||||
}
|
||||
|
||||
/* Assign. */
|
||||
$this->view->canBeChanged = common::canBeChanged('build', $build); // Determines whether an object is editable.
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->view->build = $build;
|
||||
$this->view->buildPairs = $this->build->getBuildPairs(0, 'all', 'noempty,notrunk', $build->execution, 'execution', $buildIdList);
|
||||
$this->view->buildPairs = $this->build->getBuildPairs(0, 'all', 'noempty,notrunk', $objectID, $objectType);
|
||||
$this->view->actions = $this->loadModel('action')->getList('build', $buildID);
|
||||
$this->view->link = $link;
|
||||
$this->view->param = $param;
|
||||
|
||||
Reference in New Issue
Block a user