* Fix link story bug.

This commit is contained in:
tianshujie98
2021-03-10 11:30:22 +08:00
parent 42ae2394a7
commit 16f043f693
3 changed files with 44 additions and 43 deletions
+3 -2
View File
@@ -2178,9 +2178,10 @@ class execution extends control
$this->loadModel('product');
/* Get executions and products. */
$execution = $this->execution->getById($executionID);
$execution = $this->execution->getById($executionID);
$products = $this->execution->getProducts($executionID);
$browseLink = $this->createLink('execution', 'story', "executionID=$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}");
$this->session->set('storyList', $this->app->getURI(true)); // Save session.