* Fix bug.

This commit is contained in:
leiyong
2021-04-01 09:57:12 +03:00
parent b24b6a2744
commit abd8af87a6
15 changed files with 31 additions and 15 deletions
+2 -1
View File
@@ -646,7 +646,8 @@ class task extends control
*/
public function view($taskID)
{
$task = $this->task->getById($taskID, true);
$taskID = (int)$taskID;
$task = $this->task->getById($taskID, true);
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
$this->session->project = $task->project;