diff --git a/module/execution/control.php b/module/execution/control.php index 861b3526e8..cc1634ba14 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2913,15 +2913,12 @@ class execution extends control /* Get projects, executions and products. */ $object = $this->project->getByID($objectID, $this->app->tab == 'project' ? 'project' : 'sprint,stage,kanban'); $products = $this->product->getProducts($objectID); + $queryID = ($browseType == 'bySearch') ? (int)$param : 0; + $browseLink = $this->session->executionStoryList; if($this->app->tab == 'project') { $browseLink = $this->createLink('projectstory', 'story', "objectID=$objectID"); } - else - { - $browseLink = $this->session->executionStoryList; - } - $queryID = ($browseType == 'bySearch') ? (int)$param : 0; $this->session->set('storyList', $this->app->getURI(true), $this->app->tab); // Save session.