Merge branch 'sprint/174_xieqiyu_17075' into 'master'
* Fix bug#17075. See merge request easycorp/zentaopms!770
This commit is contained in:
@@ -629,7 +629,7 @@ function notice()
|
||||
productID = $('#product').val();
|
||||
projectID = $('#project').val();
|
||||
link = createLink('build', 'create','executionID=' + executionID + '&productID=' + productID + '&projectID=' + projectID);
|
||||
link += config.requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';
|
||||
if(config.onlybody != 'yes') link += config.requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';
|
||||
html += '<a href="' + link + '" data-toggle="modal" data-type="iframe" style="padding-right:5px">' + createBuild + '</a> ';
|
||||
html += '<a href="javascript:loadExecutionBuilds(' + executionID + ')">' + refresh + '</a>';
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ class build extends control
|
||||
}
|
||||
|
||||
/* Set menu. */
|
||||
$executions = array();
|
||||
if($this->app->tab == 'project')
|
||||
{
|
||||
$this->loadModel('project')->setMenu($projectID);
|
||||
@@ -64,7 +65,7 @@ class build extends control
|
||||
$executions = $this->execution->getPairs($execution->project);
|
||||
}
|
||||
|
||||
$executionList = $this->execution->getByIdList(array_keys($executions));
|
||||
$executionList = empty($executions) ? array() : $this->execution->getByIdList(array_keys($executions));
|
||||
foreach($executionList as $execution)
|
||||
{
|
||||
if($execution->lifetime == 'ops') unset($executions[$execution->id]);
|
||||
|
||||
Reference in New Issue
Block a user