* fix for group case.

This commit is contained in:
wangyidong
2018-01-17 13:19:19 +08:00
parent acce6ed11a
commit 577e5fbbbd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -374,7 +374,8 @@ class testtask extends control
$productID = $task->product;
$this->testtask->setMenu($this->products, $productID, $task->branch);
$runs = $this->testtask->getRuns($taskID, 0, $groupBy);
$runs = $this->testtask->getRuns($taskID, 0, $groupBy);
$users = $this->loadModel('user')->getPairs('noletter');
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'testcase', false);
$runs = $this->testcase->appendData($runs, 'run');
@@ -389,7 +390,6 @@ class testtask extends control
}
elseif($groupBy == 'assignedTo')
{
if(empty($run->assignedTo)) continue;
$groupCases[$run->assignedTo][] = $run;
}
}
+1 -1
View File
@@ -40,7 +40,7 @@
<td colspan='12' class='text-left'><?php if($groupByList) echo $groupByList[$groupKey];?></td>
</tr>
<?php foreach($groupCases as $run):?>
<tr id='<?php echo $run->id;?>' class='a-center child-of-node-<?php echo $groupKey;?>'>
<tr id='<?php echo $run->id;?>' class='text-center child-of-node-<?php echo $groupKey;?>'>
<td class='<?php echo $groupClass;?>'></td>
<td class='text-left'>&nbsp;<?php echo $run->case . $lang->colon; if(!common::printLink('testcase', 'view', "case=$run->case", $run->title)) echo $run->title;?></td>
<td><span class='<?php echo 'pri' . zget($lang->testcase->priList, $run->pri, $run->pri)?>'><?php echo zget($lang->testcase->priList, $run->pri, $run->pri);?></span></td>