* finish task #6433.
This commit is contained in:
@@ -482,7 +482,15 @@ class testcase extends control
|
||||
{
|
||||
$case = $this->testcase->getById($caseID, $version);
|
||||
if(!$case) die(js::error($this->lang->notFound) . js::locate('back'));
|
||||
if($from == 'testtask') $run = $this->loadModel('testtask')->getRunByCase($taskID, $caseID);
|
||||
if($from == 'testtask')
|
||||
{
|
||||
$run = $this->loadModel('testtask')->getRunByCase($taskID, $caseID);
|
||||
$case->assignedTo = $run->assignedTo;
|
||||
$case->lastRunner = $run->lastRunner;
|
||||
$case->lastRunDate = $run->lastRunDate;
|
||||
$case->lastRunResult = $run->lastRunResult;
|
||||
$case->status = $run->status;
|
||||
}
|
||||
|
||||
$branches = $this->session->currentProductType == 'normal' ? array() : $this->loadModel('branch')->getPairs($case->product);
|
||||
$isLibCase = ($case->lib and empty($case->product));
|
||||
@@ -1077,6 +1085,7 @@ class testcase extends control
|
||||
if($product->type != 'normal') $this->lang->testcase->branch = $this->lang->product->branchName[$product->type];
|
||||
if($_POST)
|
||||
{
|
||||
$this->app->loadLang('testtask');
|
||||
$caseLang = $this->lang->testcase;
|
||||
$caseConfig = $this->config->testcase;
|
||||
|
||||
@@ -1122,6 +1131,7 @@ class testcase extends control
|
||||
$row->id = $caseID;
|
||||
}
|
||||
}
|
||||
if($taskID) $caseLang->statusList = $this->lang->testtask->statusList;
|
||||
|
||||
$stmt = $this->dao->select('t1.*')->from(TABLE_TESTRESULT)->alias('t1')
|
||||
->leftJoin(TABLE_TESTRUN)->alias('t2')->on('t1.run=t2.id')
|
||||
|
||||
Reference in New Issue
Block a user