Merge branch '15.0.beta3' of https://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3
This commit is contained in:
+11
-8
@@ -704,15 +704,18 @@ class bug extends control
|
||||
if($bug->assignedTo == $this->app->user->account) $this->loadModel('action')->read('bug', $bugID);
|
||||
|
||||
/* Set menu. */
|
||||
if($this->app->openApp == 'project') $this->loadModel('project')->setMenu($bug->project);
|
||||
if($this->app->openApp == 'execution') $this->loadModel('execution')->setMenu($bug->execution);
|
||||
if($this->app->openApp == 'qa') $this->qa->setMenu($this->products, $bug->product, $bug->branch);
|
||||
if($this->app->openApp == 'devops')
|
||||
if(!isonlybody())
|
||||
{
|
||||
session_write_close();
|
||||
$repos = $this->loadModel('repo')->getRepoPairs($bug->project);
|
||||
$this->repo->setMenu($repos);
|
||||
$this->lang->navGroup->bug = 'devops';
|
||||
if($this->app->openApp == 'project') $this->loadModel('project')->setMenu($bug->project);
|
||||
if($this->app->openApp == 'execution') $this->loadModel('execution')->setMenu($bug->execution);
|
||||
if($this->app->openApp == 'qa') $this->qa->setMenu($this->products, $bug->product, $bug->branch);
|
||||
if($this->app->openApp == 'devops')
|
||||
{
|
||||
session_write_close();
|
||||
$repos = $this->loadModel('repo')->getRepoPairs($bug->project);
|
||||
$this->repo->setMenu($repos);
|
||||
$this->lang->navGroup->bug = 'devops';
|
||||
}
|
||||
}
|
||||
|
||||
/* Get product info. */
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
<th><?php echo $lang->testcase->status;?></th>
|
||||
<td>
|
||||
<?php
|
||||
echo $this->processStatus($from != 'testtask' ? 'testcase' : 'testtask', $case);
|
||||
echo $this->processStatus('testcase', $case);
|
||||
if($case->version > $case->currentVersion and $from == 'testtask')
|
||||
{
|
||||
echo "(<span class='warning' title={$lang->testcase->fromTesttask}>{$lang->testcase->changed}</span> ";
|
||||
|
||||
@@ -861,7 +861,7 @@ class testtaskModel extends model
|
||||
$row->case = $caseID;
|
||||
$row->version = $postData->versions[$caseID];
|
||||
$row->assignedTo = '';
|
||||
$row->status = 'wait';
|
||||
$row->status = 'normal';
|
||||
if($type == 'bybuild') $row->assignedTo = zget($assignedToPairs, $caseID, '');
|
||||
$this->dao->replace(TABLE_TESTRUN)->data($row)->exec();
|
||||
|
||||
|
||||
@@ -650,6 +650,7 @@ class upgradeModel extends model
|
||||
case '15_0_rc3':
|
||||
$this->saveLogs('Execute 15_0_rc3');
|
||||
$this->updateLibType();
|
||||
$this->updateRunCaseStatus();
|
||||
$this->appendExec('15_0_rc3');
|
||||
}
|
||||
|
||||
@@ -4927,4 +4928,17 @@ class upgradeModel extends model
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the testtask related cases status.
|
||||
*
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
public function updateRunCaseStatus()
|
||||
{
|
||||
$this->dao->update(TABLE_TESTRUN)->set('status')->eq('normal')->where('status')->in('wait,done')->exec();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user