diff --git a/extension/lite/task/ext/view/create.html.php b/extension/lite/task/ext/view/create.html.php index a3fb48075c..6583ef2260 100644 --- a/extension/lite/task/ext/view/create.html.php +++ b/extension/lite/task/ext/view/create.html.php @@ -95,7 +95,7 @@ task->story;?> - task->noticeLinkStory, html::a($this->createLink('execution', 'linkStory', "executionID=$execution->project"), $lang->execution->linkStory, '_blank', 'class="text-primary"'), html::a("javascript:loadStories($execution->id)", $lang->refresh, '', 'class="text-primary"'));?> + task->noticeLinkStory, html::a($this->createLink('execution', 'linkStory', "executionID=$execution->id"), $lang->execution->linkStory, '_blank', 'class="text-primary"'), html::a("javascript:loadStories($execution->id)", $lang->refresh, '', 'class="text-primary"'));?>
story => empty($stories) ? '': $stories[$task->story]), $task->story, "class='form-control chosen' onchange='setStoryRelated();'");?> preview;?> diff --git a/module/execution/control.php b/module/execution/control.php index 1189c8047c..d362fe52e3 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2718,6 +2718,16 @@ class execution extends control $this->loadModel('story'); $this->loadModel('product'); + /* Init objectID */ + $originObjectID = $objectID; + + /* Transfer object id when version lite */ + if($this->config->vision == 'lite') + { + $kanban = $this->project->getByID($objectID, 'kanban'); + $objectID = $kanban->project; + } + /* Get projects, executions and products. */ $object = $this->project->getByID($objectID, $this->app->tab == 'project' ? 'project' : 'sprint,stage,kanban'); $products = $this->product->getProducts($objectID); @@ -2825,10 +2835,10 @@ class execution extends control $allStories = array_chunk($allStories, $pager->recPerPage); /* Assign. */ - $this->view->title = $object->name . $this->lang->colon . $this->lang->execution->linkStory; - $this->view->position[] = html::a($browseLink, $object->name); - $this->view->position[] = $this->lang->execution->linkStory; - + $this->view->title = $object->name . $this->lang->colon . $this->lang->execution->linkStory; + $this->view->position[] = html::a($browseLink, $object->name); + $this->view->position[] = $this->lang->execution->linkStory; + $this->view->objectID = $originObjectID; $this->view->object = $object; $this->view->products = $products; $this->view->allStories = empty($allStories) ? $allStories : $allStories[$pageID - 1]; diff --git a/module/execution/view/linkstory.html.php b/module/execution/view/linkstory.html.php index b19a0ad488..50f4d5a968 100644 --- a/module/execution/view/linkstory.html.php +++ b/module/execution/view/linkstory.html.php @@ -20,7 +20,7 @@ execution->linkStory;?>
- createLink($this->app->rawModule, 'story', "objectID=$object->id"), 'btn btn-link');?> + createLink($this->app->rawModule, 'story', "objectID=$objectID"), 'btn btn-link');?>