* Fix setMenu of execution.

This commit is contained in:
zhujinyong
2021-03-22 11:44:09 +08:00
parent 3af50442f6
commit c7313cefd6
15 changed files with 48 additions and 54 deletions
+3 -3
View File
@@ -41,7 +41,7 @@ class task extends control
{
$executions = $this->execution->getPairs();
$executionID = $this->execution->saveState($executionID, $executions);
$this->execution->setMenu($executions, $executionID);
$this->execution->setMenu($executionID);
$this->execution->getLimitedExecution();
$limitedExecutions = !empty($_SESSION['limitedExecutions']) ? $_SESSION['limitedExecutions'] : '';
@@ -83,7 +83,7 @@ class task extends control
$storyLink = $this->session->storyList ? $this->session->storyList : $this->createLink('execution', 'story', "executionID=$executionID");
/* Set menu. */
$this->execution->setMenu($executions, $execution->id);
$this->execution->setMenu($execution->id);
if(!empty($_POST))
{
@@ -1342,7 +1342,7 @@ class task extends control
$executions = $this->execution->getPairs();
$this->execution->setMenu($executions, $executionID);
$this->execution->setMenu($executionID);
$this->executions = $executions;
$this->view->title = $this->executions[$executionID] . $this->lang->colon . $this->lang->task->report->common;
$this->view->position[] = $this->executions[$executionID];