* [task#126377,doing,2h] Add the tutorial of testManage.

This commit is contained in:
xieqiyu
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 922198443d
commit a3eaf62e32
8 changed files with 330 additions and 2 deletions
+1 -1
View File
@@ -1211,7 +1211,7 @@ class testtaskModel extends model
*/
public function getRunById(int $runID): object|false
{
$run = $this->dao->findById($runID)->from(TABLE_TESTRUN)->fetch();
$run = common::isTutorialMode() ? $this->loadModel('tutorial')->getRun() : $this->dao->findById($runID)->from(TABLE_TESTRUN)->fetch();
if(!$run) return false;
$run->case = $this->loadModel('testcase')->getById($run->case, $run->version);