This commit is contained in:
tianshujie
2022-11-07 09:11:40 +08:00
parent 9f87785a72
commit 2176378af6
5 changed files with 18 additions and 14 deletions
+5 -5
View File
@@ -951,11 +951,6 @@ class task extends control
*/
public function view($taskID)
{
$this->session->set('executionList', $this->app->getURI(true), 'execution');
$this->commonAction($taskID);
if($this->app->tab == 'project') $this->loadModel('project')->setMenu($this->session->project);
$taskID = (int)$taskID;
$task = $this->task->getById($taskID, true);
if(!$task)
@@ -964,6 +959,11 @@ class task extends control
return print(js::error($this->lang->notFound) . js::locate($this->createLink('execution', 'all')));
}
$this->session->set('executionList', $this->app->getURI(true), 'execution');
$this->commonAction($taskID);
if($this->app->tab == 'project') $this->loadModel('project')->setMenu($this->session->project);
$execution = $this->execution->getById($task->execution);
if(!isonlybody() and $execution->type == 'kanban')
{