From 19af1f8d874f038f9900cca4c71477ff799cf8b3 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 14 Jul 2021 10:21:23 +0800 Subject: [PATCH] * Deal the link of execution kanban at classic version. --- module/common/lang/menu.php | 2 +- module/common/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common/lang/menu.php b/module/common/lang/menu.php index 61def452eb..91b1729948 100644 --- a/module/common/lang/menu.php +++ b/module/common/lang/menu.php @@ -227,7 +227,7 @@ $lang->scrum->menu->settings['subMenu']->group = array('link' => "{$lang-> $lang->execution->homeMenu = new stdclass(); //if($config->systemMode == 'new') $lang->execution->homeMenu->index = "$lang->dashboard|execution|index|"; //$lang->execution->homeMenu->list = array('link' => "{$lang->execution->list}|execution|all|", 'alias' => 'create,batchedit'); -$lang->execution->homeMenu->executionkanban = array('link' => "{$lang->execution->executionKanban}|execution|executionkanban|"); +if($config->systemMode == 'new') $lang->execution->homeMenu->executionkanban = array('link' => "{$lang->execution->executionKanban}|execution|executionkanban|"); $lang->execution->menu = new stdclass(); $lang->execution->menu->task = array('link' => "{$lang->task->common}|execution|task|executionID=%s", 'subModule' => 'task,tree', 'alias' => 'importtask,importbug'); diff --git a/module/common/model.php b/module/common/model.php index 1a0168e12c..2024d5b5e7 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -539,7 +539,7 @@ class commonModel extends model } if($config->systemMode == 'classic' and $openApp == 'execution') $icon = zget($lang->navIcons, 'project', ''); - $link = helper::createLink($currentModule, $currentMethod); + $link = ($openApp == 'execution' and ($config->systemMode == 'classic')) ? '' : helper::createLink($currentModule, $currentMethod); $html = $link ? html::a($link, "$icon {$lang->$openApp->common}", '', "class='btn'") : "$icon {$lang->$openApp->common}"; echo "
" . $html . '
';