* fix bug gantt
This commit is contained in:
@@ -25,4 +25,3 @@ $lang->execution->icons['grouptask'] = 'sitemap';
|
||||
$lang->execution->aclList['private'] = "私有(团队成员和项目负责人可访问)";
|
||||
|
||||
$lang->execution->common = '项目看板';
|
||||
$lang->execution->gantt = '甘特图';
|
||||
@@ -127,13 +127,20 @@ 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];
|
||||
if(common::hasPriv('execution', $key))
|
||||
{
|
||||
$tmpValue = explode('|', $value['link']);
|
||||
$subMenu->{$key}['name'] = $tmpValue[0];
|
||||
$subMenu->{$key}['module'] = $tmpValue[1];
|
||||
$subMenu->{$key}['method'] = $tmpValue[2];
|
||||
$subMenu->{$key}['vars'] = $tmpValue[3];
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($subMenu->$key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$TRActions = '';
|
||||
$TRActions .= "<div class='btn-group dropdown'>";
|
||||
$TRActions .= html::a("javascript:;", "<i class='icon icon-" . $this->lang->execution->icons[$currentMethod]."'> </i>" . $subMenu->{$currentMethod}['name'] . " <span class='caret'></span>", '', "class='btn btn-link' data-toggle='dropdown'");
|
||||
|
||||
@@ -23,6 +23,8 @@ include '../../common/view/header.lite.html.php';
|
||||
$moduleName = isset($lang->$module->common) ? $lang->$module->common : $module;
|
||||
$methodName = isset($lang->$module->$method) ? $lang->$module->$method : $method;
|
||||
|
||||
if($module == 'execution' && $method == 'gantt') $methodName = $methodName->common;
|
||||
|
||||
/* find method name if method is lowercase letter. */
|
||||
if(!isset($lang->$module->$method))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user