* Fix bug#3677.

This commit is contained in:
qiyu-xie
2020-12-03 15:50:29 +08:00
parent 58ed917b46
commit 7c5381cade
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -72,6 +72,7 @@ class testreport extends control
$tasks = explode(',', $report->tasks);
if(count($tasks) != count($taskIdList) or array_diff($tasks, $taskIdList)) unset($reports[$reportID]);
}
$pager->setRecTotal(count($reports));
}
if(empty($reports) and common::hasPriv('testreport', 'create'))
+1 -1
View File
@@ -114,7 +114,7 @@
<?php
if(common::canBeChanged('report', $report))
{
if(common::hasPriv('testreport', 'create')) echo html::a(inLink('create', "objectID=$report->objectID&objectType=$report->objectType"), "<i class='icon-refresh'></i>", '', "class='btn' title='{$lang->testreport->recreate}'");
if(common::hasPriv('testreport', 'create')) echo html::a(inLink('create', "objectID=$report->objectID&objectType=$report->objectType&extra=$report->id"), "<i class='icon-refresh'></i>", '', "class='btn' title='{$lang->testreport->recreate}'");
common::printIcon('testreport', 'edit', "reportID=$report->id", '', 'button');
common::printIcon('testreport', 'delete', "reportID=$report->id", '', 'button', 'trash', 'hiddenwin');
}