diff --git a/module/story/control.php b/module/story/control.php index 5725bf7703..6349184792 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1205,8 +1205,13 @@ class story extends control */ public function view($storyID, $version = 0, $param = 0) { - $uri = $this->app->getURI(true); - $this->session->set('productList', $uri . "#app={$this->app->tab}", 'product'); + $uri = $this->app->getURI(true); + $tab = $this->app->tab; + $buildApp = $tab == 'product' ? 'project' : $tab; + $releaseApp = $tab == 'execution' ? 'product' : $tab; + $this->session->set('productList', $uri . "#app={$tab}", 'product'); + $this->session->set('releaseList', $uri, $releaseApp); + $this->session->set('buildList', $uri, $buildApp); $storyID = (int)$storyID; $story = $this->story->getById($storyID, $version, true); diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index 8beb4ef2d2..b99fe52d15 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -497,11 +497,10 @@ @@ -512,11 +511,11 @@