* Fix bug #19786.
This commit is contained in:
@@ -87,15 +87,15 @@ public function getTRActions($currentMethod)
|
||||
foreach($subMenu as $key => $value)
|
||||
{
|
||||
$tmpValue = explode('|', $value['link']);
|
||||
$subMenu->$key['name'] = $tmpValue[0];
|
||||
$subMenu->$key['module'] = $tmpValue[1];
|
||||
$subMenu->$key['method'] = $tmpValue[2];
|
||||
$subMenu->$key['vars'] = $tmpValue[3];
|
||||
$subMenu->{$key}['name'] = $tmpValue[0];
|
||||
$subMenu->{$key}['module'] = $tmpValue[1];
|
||||
$subMenu->{$key}['method'] = $tmpValue[2];
|
||||
$subMenu->{$key}['vars'] = $tmpValue[3];
|
||||
}
|
||||
|
||||
$TRActions = '';
|
||||
$TRActions .= "<div class='dropdown'>";
|
||||
$TRActions .= html::a('javascript:;', "<i class='icon icon-" . $this->lang->execution->icons[$currentMethod]."'></i> " . $subMenu->$currentMethod['name'] . "<span class='caret'></span>", '', "data-toggle='dropdown' class='btn btn-link'");
|
||||
$TRActions .= html::a('javascript:;', "<i class='icon icon-" . $this->lang->execution->icons[$currentMethod]."'></i> " . $subMenu->{$currentMethod}['name'] . "<span class='caret'></span>", '', "data-toggle='dropdown' class='btn btn-link'");
|
||||
$TRActions .= "<ul class='dropdown-menu pull-right'>";
|
||||
foreach($subMenu as $subKey => $subName)
|
||||
{
|
||||
|
||||
@@ -80,8 +80,8 @@ function createProject()
|
||||
|
||||
var link = createLink('project', 'create');
|
||||
|
||||
config.onlybody = onlybody;
|
||||
parent.location.href = link;
|
||||
config.onlybody = onlybody;
|
||||
window.parent.$.apps.open(link, 'project');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,8 +97,8 @@ function createExecution()
|
||||
|
||||
var link = createLink('execution', 'create');
|
||||
|
||||
config.onlybody = onlybody;
|
||||
parent.location.href = link;
|
||||
config.onlybody = onlybody;
|
||||
window.parent.$.apps.open(link, 'execution');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
echo "<ul class='dropdown-menu pull-right' role='menu'>";
|
||||
if($createStoryPriv) echo '<li>' . html::a('###', $lang->todo->reasonList['story'], '', "data-toggle='modal' data-target='#productModal' data-backdrop='false' data-moveable='true' data-position='center' id='toStoryLink'") . '</li>';
|
||||
if($createTaskPriv) echo '<li>' . html::a('###', $lang->todo->reasonList['task'], '', "data-toggle='modal' data-target='#executionModal' data-backdrop='false' data-moveable='true' data-position='center' id='toTaskLink'") . '</li>';
|
||||
if($createBugPriv) echo '<li>' . html::a('###', $lang->todo->reasonList['bug'], '', "data-toggle='modal' data-target='#projectProductModal' data-backdrop='false' data-moveable='true' data-position='center' id='toBugLink'") . '</li>';
|
||||
if($createBugPriv and $config->vision == 'rnd') echo '<li>' . html::a('###', $lang->todo->reasonList['bug'], '', "data-toggle='modal' data-target='#projectProductModal' data-backdrop='false' data-moveable='true' data-position='center' id='toBugLink'") . '</li>';
|
||||
echo "</ul>";
|
||||
if($isonlybody) $_GET['onlybody'] = 'yes';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user