Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms
This commit is contained in:
@@ -124,9 +124,7 @@ if($this->app->tab == 'project') js::set('objectID', $projectID);
|
||||
<div class='input-group' id='buildBox'>
|
||||
<span class="input-group-addon"><?php echo $lang->bug->openedBuild?></span>
|
||||
<?php echo html::select('openedBuild[]', $builds, empty($buildID) ? '' : $buildID, "multiple=multiple class='chosen form-control'");?>
|
||||
<?php if(count($builds) < 2):?>
|
||||
<span class='input-group-addon fix-border' id='buildBoxActions'></span>
|
||||
<?php endif;?>
|
||||
<div class='input-group-btn'><?php echo html::commonButton($lang->bug->allBuilds, "class='btn' id='all' data-toggle='tooltip' onclick='loadAllBuilds()'")?></div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -1317,7 +1317,7 @@ class execution extends control
|
||||
|
||||
$this->view->title = $this->lang->execution->tips;
|
||||
$this->view->tips = $this->fetch('execution', 'tips', "executionID=$executionID");
|
||||
$this->view->defaultURL = isset($this->session->closeTipsList) ? $this->session->closeTipsList : $this->createLink('execution', 'task', 'executionID=' . $executionID);
|
||||
$this->view->defaultURL = $this->session->closeTipsList ? $this->session->closeTipsList : $this->createLink('execution', 'task', 'executionID=' . $executionID);
|
||||
$this->view->executionID = $executionID;
|
||||
$this->view->projectID = $projectID;
|
||||
$this->view->project = $project;
|
||||
|
||||
@@ -2152,10 +2152,11 @@ class storyModel extends model
|
||||
* Judge stage according to the devel and test tasks' status.
|
||||
*
|
||||
* 1. one doing devel task, all test tasks waiting, set stage as developing.
|
||||
* 2. all devel tasks done, all test tasks waiting, set stage as developed.
|
||||
* 3. one test task doing, set stage as testing.
|
||||
* 4. all test tasks done, still some devel tasks not done(wait, doing), set stage as testing.
|
||||
* 5. all test tasks done, all devel tasks done, set stage as tested.
|
||||
* 2. some devel tasks done, all test tasks not done, set stage as developing.
|
||||
* 3. all devel tasks done, all test tasks waiting, set stage as developed.
|
||||
* 4. one test task doing, set stage as testing.
|
||||
* 5. all test tasks done, still some devel tasks not done(wait, doing), set stage as testing.
|
||||
* 6. all test tasks done, all devel tasks done, set stage as tested.
|
||||
*/
|
||||
foreach($branchStatusList as $branch => $statusList)
|
||||
{
|
||||
@@ -2164,6 +2165,7 @@ class storyModel extends model
|
||||
$develTasks = isset($branchDevelTasks[$branch]) ? $branchDevelTasks[$branch] : 0;
|
||||
if($statusList['devel']['doing'] > 0 and $statusList['test']['wait'] == $testTasks) $stage = 'developing';
|
||||
if($statusList['devel']['wait'] > 0 and $statusList['devel']['done'] > 0 and $statusList['test']['wait'] == $testTasks) $stage = 'developing';
|
||||
if(($statusList['devel']['doing'] > 0 or ($statusList['devel']['wait'] > 0 and $statusList['devel']['done'] > 0)) and $statusList['test']['wait'] > 0 and $statusList['test']['done'] > 0) $stage = 'developing';
|
||||
if($statusList['devel']['done'] == $develTasks and $develTasks > 0 and $statusList['test']['wait'] == $testTasks) $stage = 'developed';
|
||||
if($statusList['devel']['done'] == $develTasks and $develTasks > 0 and $statusList['test']['wait'] > 0 and $statusList['test']['done'] > 0) $stage = 'testing';
|
||||
if($statusList['test']['doing'] > 0 or $statusList['test']['pause'] > 0) $stage = 'testing';
|
||||
|
||||
Reference in New Issue
Block a user