Optimize the code.

This commit is contained in:
孙华伟
2022-03-31 15:52:15 +08:00
parent 5c9862a129
commit 0ed070fd28
+1 -1
View File
@@ -223,7 +223,7 @@ class testtask extends control
$task = $this->dao->findById($taskID)->from(TABLE_TESTTASK)->fetch();
if($this->app->tab == 'project') $link = $this->createLink('project', 'testtask', "projectID=$task->project");
if($this->app->tab == 'execution') $link = $this->createLink('execution', 'testtask', "executionID=$task->execution");
if($this->app->tab == 'qa') $link = $this->createLink('testtask', 'browse', "productID=".$this->post->product);
if($this->app->tab == 'qa') $link = $this->createLink('testtask', 'browse', "productID=" . $this->post->product);
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link));
}