* fix bug gantt

This commit is contained in:
Zongjun Lan
2022-03-29 16:11:21 +08:00
parent 81791ba223
commit 7c99a6153d
3 changed files with 15 additions and 7 deletions
@@ -25,4 +25,3 @@ $lang->execution->icons['grouptask'] = 'sitemap';
$lang->execution->aclList['private'] = "私有(团队成员和项目负责人可访问)";
$lang->execution->common = '项目看板';
$lang->execution->gantt = '甘特图';
+13 -6
View File
@@ -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'");
+2
View File
@@ -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))
{