* Fix link story bug.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user