* Use function processStatus to get status of a testcase.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<td class='text-left' title="<?php echo $bug->title?>"><?php echo $bug->title;?></td>
|
||||
<td><span class='<?php echo 'pri' . zget($lang->bug->priList, $bug->pri, $bug->pri)?>'><?php echo $bug->pri == '0' ? '' : zget($lang->bug->priList, $bug->pri, $bug->pri);?></span></td>
|
||||
<td><?php echo $lang->bug->typeList[$bug->type];?></td>
|
||||
<td><?php echo $lang->bug->statusList[$bug->status];?></td>
|
||||
<td><?php echo $this->processStatus('bug', $bug);?></td>
|
||||
<td><?php echo zget($users, $bug->assignedTo, $bug->assignedTo);?></td>
|
||||
<td><?php echo zget($users, $bug->resolvedBy, $bug->resolvedBy);?></td>
|
||||
<td><?php echo $lang->bug->resolutionList[$bug->resolution];?></td>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
else
|
||||
{
|
||||
echo "<span class='status-case status-{$case->status}'>";
|
||||
echo $lang->testcase->statusList[$case->status];
|
||||
echo $this->processStatus('testcase', $case);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<td class='text-left' title='<?php echo $case2Link->title;?>'><?php echo html::a($this->createLink('testcase', 'view', "caseID=$case2Link->id"), $case2Link->title, '_blank');?></td>
|
||||
<td><?php echo $lang->testcase->typeList[$case2Link->type];?></td>
|
||||
<td><?php echo $users[$case2Link->openedBy];?></td>
|
||||
<td class='case-<?php echo $case2Link->status?>'><?php echo $lang->testcase->statusList[$case2Link->status];?></td>
|
||||
<td class='case-<?php echo $case2Link->status?>'><?php echo $this->processStatus('testcase', $case2Link);?></td>
|
||||
</tr>
|
||||
<?php $caseCount ++;?>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
<th><?php echo $lang->testcase->status;?></th>
|
||||
<td>
|
||||
<?php
|
||||
echo $lang->testcase->statusList[$case->status];
|
||||
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> ";
|
||||
|
||||
Reference in New Issue
Block a user