* fix for group case.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'> <?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>
|
||||
|
||||
Reference in New Issue
Block a user