This commit is contained in:
liumengyi
2023-11-22 17:22:16 +08:00
parent 50497766b9
commit c2bfb1ecf8
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -202,9 +202,9 @@ class testreportZen extends testreport
if($task->build != 'trunk') $buildIdList[$task->build] = $task->build;
}
$task = $objectID ? $this->testtask->getByID($objectID) : key($tasks);
$begin = !empty($begin) ? date("Y-m-d", strtotime($begin)) : $task->begin;
$end = !empty($end) ? date("Y-m-d", strtotime($end)) : $task->end;
$task = $objectID ? $this->testtask->getByID($extra) : key($tasks);
$begin = !empty($begin) ? date("Y-m-d", strtotime($begin)) : (string)$task->begin;
$end = !empty($end) ? date("Y-m-d", strtotime($end)) : (string)$task->end;
$builds = $this->build->getByList($buildIdList);
$bugs = $this->testreport->getBugs4Test($builds, $productIdList, $begin, $end, 'execution');
$execution = $this->execution->getById($executionID);