diff --git a/module/upgrade/control.php b/module/upgrade/control.php index b2fa00c40f..039ef202cd 100644 --- a/module/upgrade/control.php +++ b/module/upgrade/control.php @@ -164,8 +164,8 @@ class upgrade extends control $mode = fixer::input('post')->get('mode'); $this->loadModel('setting')->setItem('system.common.global.mode', $mode); - if($mode == 'old') $this->locate(inlink('afterExec', "fromVersion=$fromVersion")); - if($mode == 'new') $this->locate(inlink('mergeTips')); + if($mode == 'classic') $this->locate(inlink('afterExec', "fromVersion=$fromVersion")); + if($mode == 'new') $this->locate(inlink('mergeTips')); } $this->view->title = $this->lang->upgrade->to15Guide; diff --git a/module/user/model.php b/module/user/model.php index f815e0033e..66cbdd59fe 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -1025,10 +1025,11 @@ class userModel extends model */ public function getExecutions($account, $type = 'execution', $status = 'all', $orderBy = 'id_desc', $pager = null) { - if($type == 'execution') $type = 'sprint,stage'; + $projectType = $type == 'execution' ? 'sprint,stage' : $type; $myProjectsList = $this->dao->select('t1. *,t2. *')->from(TABLE_TEAM)->alias('t1') ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.root = t2.id') ->where('t1.type')->in($type) + ->andWhere('t2.type')->in($projectType) ->beginIF(strpos('doing|wait|suspended|closed', $status) !== false)->andWhere('status')->eq($status)->fi() ->beginIF($status == 'done')->andWhere('status')->in('done,closed')->fi() ->beginIF($status == 'undone')->andWhere('status')->notin('done,closed')->fi() diff --git a/module/user/view/featurebar.html.php b/module/user/view/featurebar.html.php index 96011fa96a..8a22b15661 100755 --- a/module/user/view/featurebar.html.php +++ b/module/user/view/featurebar.html.php @@ -39,9 +39,12 @@ $active = $methodName == 'testcase' ? ' btn-active-text' : ''; common::printLink('user', 'testcase', "userID={$user->id}", $label, '', "class='btn btn-link $active'"); - $label = "{$lang->user->execution}"; - $active = $methodName == 'execution' ? ' btn-active-text' : ''; - common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active'"); + if($this->config->systemMode == 'new') + { + $label = "{$lang->user->execution}"; + $active = $methodName == 'execution' ? ' btn-active-text' : ''; + common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active'"); + } if(isset($this->config->maxVersion)) {