From c745c2ca195bad9643f360a7d4dcbd1825780b82 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 10 Mar 2021 11:41:49 +0800 Subject: [PATCH] * Fix bug. --- module/execution/control.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index c7e12fd292..1eeccbcdc5 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2180,9 +2180,8 @@ class execution extends control /* Get executions and products. */ $execution = $this->execution->getById($executionID); $products = $this->execution->getProducts($executionID); - $module = $execution->type == 'execution' ? 'execution' : 'projectstory'; - $browseLink = $this->createLink($module, 'story', "executionID=$executionID"); - if($execution->type == 'execution') $browseLink = $this->createLink('executionstory', 'story', "productID={$this->session->product}"); + $browseLink = $this->createLink('execution', 'story', "executionID=$executionID"); + if($execution->type == 'project') $browseLink = $this->createLink('projectstory', 'story'); $this->session->set('storyList', $this->app->getURI(true)); // Save session. if($execution->type != 'execution') $this->execution->setMenu($this->executions, $execution->id); // Set menu.