From 6e5ef4c27bcf84d4244ff99810354692985e98bf Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 30 Jul 2021 10:03:43 +0800 Subject: [PATCH] * Fix execution drop menu bug. --- module/task/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/task/control.php b/module/task/control.php index b0ddf70f91..5cc9ccbbfa 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -350,7 +350,7 @@ class task extends control $this->view->actions = $this->loadModel('action')->getList('task', $taskID); /* Set menu. */ - $this->execution->setMenu($this->execution->getPairs(), $this->view->execution->id); + $this->execution->setMenu($this->view->execution->id); $this->view->position[] = html::a($this->createLink('execution', 'browse', "execution={$this->view->task->execution}"), $this->view->execution->name); } @@ -365,7 +365,6 @@ class task extends control public function edit($taskID, $comment = false) { $this->commonAction($taskID); - $this->execution->setMenu($this->view->task->execution); if(!empty($_POST)) {