* [bug#61232] Set begin and end to report time when edit testreport.

This commit is contained in:
xieqiyu
2025-04-08 11:08:19 +08:00
committed by 刘刚
parent 6d510ee97d
commit a4fa46cd54
+2 -2
View File
@@ -227,9 +227,9 @@ class testreport extends control
if($oldReport->objectType == 'testtask')
{
$task = $this->testtask->getByID($oldReport->objectID);
if($task->build == 'trunk') return $this->send(array('result' => 'fail', 'message' => $this->lang->error->errorTrunk, 'load' => array('alert' => $this->lang->error->errorTrunk, 'locate' => array('load' => true)))); ;
if($task->build == 'trunk') return $this->send(array('result' => 'fail', 'message' => $this->lang->error->errorTrunk, 'load' => array('alert' => $this->lang->error->errorTrunk, 'locate' => array('load' => true))));
$reportData = $this->testreportZen->assignTesttaskReportData($oldReport->objectID, $begin, $end, $oldReport->product, $task, 'edit');
$reportData = $this->testreportZen->assignTesttaskReportData($oldReport->objectID, $begin ?: $oldReport->begin, $end ?: $oldReport->end, $oldReport->product, $task, 'edit');
}
elseif($oldReport->objectType == 'execution' || $oldReport->objectType == 'project')
{