diff --git a/module/bug/model.php b/module/bug/model.php index b37f2a7a51..63d08257d6 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -3609,7 +3609,8 @@ class bugModel extends model if($type == 'view') $menu .= $this->buildMenu('bug', 'activate', $params, $bug, $type, '', '', "text-success iframe showinonlybody", true); if($type == 'view' && $this->app->tab != 'product') { - $menu .= $this->buildMenu('bug', 'toStory', $toStoryParams, $bug, $type, $this->lang->icons['story'], '', '', '', "data-app='product' id='tostory'", $this->lang->bug->toStory); + $tab = $this->app->tab == 'qa' ? 'product' : $this->app->tab; + $menu .= $this->buildMenu('bug', 'toStory', $toStoryParams, $bug, $type, $this->lang->icons['story'], '', '', '', "data-app='$tab' id='tostory'", $this->lang->bug->toStory); if(common::hasPriv('task', 'create') and !isonlybody()) $menu .= html::a('#toTask', "{$this->lang->bug->toTask}", '', "data-app='qa' data-toggle='modal' class='btn btn-link'"); $menu .= $this->buildMenu('bug', 'createCase', $convertParams, $bug, $type, 'sitemap'); } diff --git a/module/execution/view/story.html.php b/module/execution/view/story.html.php index 0d177416b9..6de388afb2 100644 --- a/module/execution/view/story.html.php +++ b/module/execution/view/story.html.php @@ -96,14 +96,14 @@ $hidden = empty($buttonLink) ? 'hidden' : ''; echo "