* Fix bug#12123.

This commit is contained in:
qiyu-xie
2021-06-02 13:25:55 +08:00
parent 82014234d4
commit 581d35e006
3 changed files with 46 additions and 32 deletions
+4 -2
View File
@@ -16,7 +16,8 @@
<?php if($cases):?>
<tbody>
<?php $i = 0;?>
<?php foreach($cases as $case):?>
<?php foreach($cases as $taskID => $caseList):?>
<?php foreach($caseList as $case):?>
<?php if(!isset($pager) and $i > 50):?>
<?php echo html::hidden('cases[]', $case->id);?>
<?php else:?>
@@ -37,9 +38,10 @@
<?php endif;?>
<?php $i++;?>
<?php endforeach;?>
<?php endforeach;?>
<?php if(!isset($pager) and $i > 50):?>
<tr>
<td colspan='9'><?php echo sprintf($lang->testreport->hiddenCase, count($cases) - 50);?></td>
<td colspan='9'><?php echo sprintf($lang->testreport->hiddenCase, $i - 50);?></td>
</tr>
<?php endif;?>
</tbody>