* finish task #70196.

This commit is contained in:
wangyidong
2022-09-26 13:15:48 +08:00
parent 685799b216
commit 0ba479e9e5
8 changed files with 12 additions and 56 deletions
+1 -9
View File
@@ -111,9 +111,6 @@ class task extends control
$this->view->lanePairs = $lanePairs;
}
/* Set menu. */
$this->execution->setMenu($execution->id);
if(!empty($_POST))
{
$response['result'] = 'success';
@@ -512,6 +509,7 @@ class task extends control
/* Set menu. */
$this->execution->setMenu($this->view->execution->id);
if($this->app->tab == 'project') $this->loadModel('project')->setMenu($this->session->project);
$this->view->position[] = html::a($this->createLink('execution', 'browse', "execution={$this->view->task->execution}"), $this->view->execution->name);
}
@@ -600,8 +598,6 @@ class task extends control
}
}
if($this->app->tab == 'project') $this->loadModel('project')->setMenu($this->session->project);
$tasks = $this->task->getParentTaskPairs($this->view->execution->id, $this->view->task->parent);
if(isset($tasks[$taskID])) unset($tasks[$taskID]);
@@ -924,7 +920,6 @@ class task extends control
$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);
@@ -963,9 +958,6 @@ class task extends control
/* Update action. */
if($task->assignedTo == $this->app->user->account) $this->loadModel('action')->read('task', $taskID);
/* Set menu. */
if($this->app->tab == 'execution') $this->execution->setMenu($execution->id);
$this->executeHooks($taskID);
$title = "TASK#$task->id $task->name / $execution->name";