* Fix bug #20307,18089.
This commit is contained in:
@@ -419,10 +419,10 @@ EOF;
|
||||
|
||||
if($this->config->systemMode == 'new')
|
||||
{
|
||||
$projectPairs = $this->dao->select('t2.id,t1.name')->from(TABLE_PROJECT)->alias('t1')
|
||||
$projects = $this->dao->select('t1.id,t1.name,t2.id as execution')->from(TABLE_PROJECT)->alias('t1')
|
||||
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.id=t2.parent')
|
||||
->where('t2.id')->in($executionIDList)
|
||||
->fetchPairs();
|
||||
->fetchAll('execution');
|
||||
}
|
||||
|
||||
foreach($tasks as $task)
|
||||
@@ -446,21 +446,21 @@ EOF;
|
||||
$this->app->loadLang('story');
|
||||
|
||||
/* Assign. */
|
||||
$this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->task;
|
||||
$this->view->position[] = $this->lang->my->task;
|
||||
$this->view->tabID = 'task';
|
||||
$this->view->tasks = $tasks;
|
||||
$this->view->summary = $this->loadModel('execution')->summary($tasks);
|
||||
$this->view->type = $type;
|
||||
$this->view->kanbanList = $this->execution->getPairs(0, 'kanban');
|
||||
$this->view->recTotal = $recTotal;
|
||||
$this->view->recPerPage = $recPerPage;
|
||||
$this->view->pageID = $pageID;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->view->pager = $pager;
|
||||
$this->view->mode = 'task';
|
||||
$this->view->projectPairs = isset($projectPairs) ? $projectPairs : array();
|
||||
$this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->task;
|
||||
$this->view->position[] = $this->lang->my->task;
|
||||
$this->view->tabID = 'task';
|
||||
$this->view->tasks = $tasks;
|
||||
$this->view->summary = $this->loadModel('execution')->summary($tasks);
|
||||
$this->view->type = $type;
|
||||
$this->view->kanbanList = $this->execution->getPairs(0, 'kanban');
|
||||
$this->view->recTotal = $recTotal;
|
||||
$this->view->recPerPage = $recPerPage;
|
||||
$this->view->pageID = $pageID;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->view->pager = $pager;
|
||||
$this->view->mode = 'task';
|
||||
$this->view->projects = isset($projects) ? $projects : array();
|
||||
|
||||
if($this->app->viewType == 'json') $this->view->tasks = array_values($this->view->tasks);
|
||||
$this->display();
|
||||
|
||||
@@ -100,7 +100,9 @@
|
||||
<?php if(!empty($task->children)) echo '<a class="task-toggle" data-id="' . $task->id . '"><i class="icon icon-angle-double-right"></i></a>';?>
|
||||
</td>
|
||||
<?php if($config->systemMode == 'new'):?>
|
||||
<td class='c-project' title="<?php echo zget($projectPairs, $task->execution, '');?>"><?php echo html::a($this->createLink('project', 'index', "projectID=$task->project"), zget($projectPairs, $task->execution, ''));?></td>
|
||||
<?php $projectName = isset($projects[$task->execution]->name) ? $projects[$task->execution]->name : '';?>
|
||||
<?php $projectID = isset($projects[$task->execution]->id) ? $projects[$task->execution]->id : 0;?>
|
||||
<td class='c-project' title="<?php echo $projectName?>"><?php echo html::a($this->createLink('project', 'index', "projectID=$projectID"), $projectName);?></td>
|
||||
<?php endif;?>
|
||||
<td class='c-project' title="<?php echo $task->executionName;?>"><?php echo html::a($this->createLink('execution', 'task', "executionID=$task->execution"), $task->executionName, '');?></td>
|
||||
<?php if($type != 'openedBy'): ?>
|
||||
@@ -166,7 +168,9 @@
|
||||
<?php echo html::a($this->createLink('task', 'view', "taskID=$child->id", '', '', $child->project), $child->name, null, "style='color: $child->color'");?>
|
||||
</td>
|
||||
<?php if($config->systemMode == 'new'):?>
|
||||
<td class='c-project' title="<?php echo $child->projectName;?>"><?php echo html::a($this->createLink('project', 'view', "projectID=$child->project"), $child->projectName);?></td>
|
||||
<?php $projectName = isset($projects[$child->execution]->name) ? $projects[$child->execution]->name : '';?>
|
||||
<?php $projectID = isset($projects[$child->execution]->id) ? $projects[$child->execution]->id : 0;?>
|
||||
<td class='c-project' title="<?php echo $projectName;?>"><?php echo html::a($this->createLink('project', 'view', "projectID=$projectID"), $projectName);?></td>
|
||||
<?php endif;?>
|
||||
<td class='c-project' title="<?php echo $child->projectName;?>"><?php echo html::a($this->createLink('execution', 'task', "executionID=$child->project"), $child->executionName, '');?></td>
|
||||
<?php if($type != 'openedBy'): ?>
|
||||
|
||||
@@ -81,7 +81,7 @@ $lang->testreport->legacyBugTip = "Bug状态是激活,或Bug的解决时间
|
||||
$lang->testreport->activatedBugTip = "在测试单时间范围内被激活的Bug数量。";
|
||||
$lang->testreport->fromCaseBugTip = "测试时间范围内,用例执行失败后创建的Bug。";
|
||||
$lang->testreport->errorTrunk = "主干版本不能创建测试报告,请修改关联版本!";
|
||||
$lang->testreport->noTestTask = "该{$lang->productCommon}下还没有关联非Trunk的测试单,不能创建报告。请先创建测试单,再创建。";
|
||||
$lang->testreport->noTestTask = "该{$lang->productCommon}下还没有关联的测试单,不能创建报告。请先创建测试单,再创建。";
|
||||
$lang->testreport->noObjectID = "没有选定测试单或{$lang->executionCommon},无法创建测试报告!";
|
||||
$lang->testreport->moreProduct = "只能对同一个{$lang->productCommon}生成测试报告。";
|
||||
$lang->testreport->hiddenCase = "隐藏 %s 个用例";
|
||||
|
||||
Reference in New Issue
Block a user