* Fix bug #35419, update project when edit a testtask.

This commit is contained in:
songchenxuan
2023-05-19 17:14:54 +08:00
parent 1caeb75ad0
commit 32d759e320
+5
View File
@@ -778,6 +778,11 @@ class testtaskModel extends model
->join('type', ',')
->remove('files,labels,uid,comment,contactListMenu')
->get();
/* Fix bug #35419. */
$execution = $this->loadModel('execution')->getByID($task->execution);
$task->project = $execution->project;
$task = $this->loadModel('file')->processImgURL($task, $this->config->testtask->editor->edit['id'], $this->post->uid);
$this->dao->update(TABLE_TESTTASK)->data($task, 'deleteFiles')