* Fix bug #32424.
This commit is contained in:
@@ -3704,6 +3704,11 @@ class bugModel extends model
|
||||
if($type == 'view' && $this->app->tab != 'product')
|
||||
{
|
||||
$tab = $this->app->tab == 'qa' ? 'product' : $this->app->tab;
|
||||
if($tab == 'product')
|
||||
{
|
||||
$product = $this->loadModel('product')->getByID($bug->product);
|
||||
if(!empty($product->shadow)) $tab = 'project';
|
||||
}
|
||||
$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', "<i class='icon icon-check'></i><span class='text'>{$this->lang->bug->toTask}</span>", '', "data-app='qa' data-toggle='modal' class='btn btn-link'");
|
||||
$menu .= $this->buildMenu('bug', 'createCase', $convertParams, $bug, $type, 'sitemap');
|
||||
|
||||
Reference in New Issue
Block a user