* Fix bug #51313,20782.

This commit is contained in:
tanghucheng
2022-03-22 16:25:41 +08:00
parent f523d8f121
commit b2a51a11f7
2 changed files with 12 additions and 6 deletions
+12 -4
View File
@@ -19,6 +19,9 @@ public function setMenu($executionID, $buildID = 0, $extra = '')
die(js::locate(helper::createLink('project', 'execution', "status=all&projectID={$execution->project}")));
}
$lowerModule = strtolower($this->app->rawModule);
$lowerMethod = strtolower($this->app->rawMethod);
$modulePageNav = "";
$modulePageNav .= "<div class='btn-group angle-btn active'><div class='btn-group'>";
$modulePageNav .= "<button data-toggle='dropdown' type='button' class='btn' style='border-radius: 4px;'>{$currentKanban->name} <span class='caret'></span></button>";
@@ -38,13 +41,18 @@ public function setMenu($executionID, $buildID = 0, $extra = '')
$method = 'kanban';
}
$modulePageNav .= '<li>' . html::a(helper::createLink('execution', $method, "execution=$kanban->id"), $kanban->name) . '</li>';
$module = 'execution';
if($lowerModule == 'task' and $lowerMethod == 'create')
{
$module = 'task';
$method = 'create';
}
$modulePageNav .= '<li>' . html::a(helper::createLink($module, $method, "execution=$kanban->id"), $kanban->name) . '</li>';
}
$modulePageNav .= "</ul></div></div>";
$lowerModule = strtolower($this->app->rawModule);
$lowerMethod = strtolower($this->app->rawMethod);
if($lowerModule == 'execution' and strpos('|kanban|task|calendar|gantt|tree|grouptask|', "|{$lowerMethod}|") !== false)
{
$this->session->set('kanbanview', $lowerMethod);
@@ -1,4 +1,2 @@
<?php
$config->project->datatable->fieldList['actions']['width'] = '120';
$config->project->list->exportFields = 'id,code,name,status,budget,PM,desc';