* Fix bug #11049.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -39,9 +39,12 @@
|
||||
$active = $methodName == 'testcase' ? ' btn-active-text' : '';
|
||||
common::printLink('user', 'testcase', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
|
||||
|
||||
$label = "<span class='text'>{$lang->user->execution}</span>";
|
||||
$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 = "<span class='text'>{$lang->user->execution}</span>";
|
||||
$active = $methodName == 'execution' ? ' btn-active-text' : '';
|
||||
common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
|
||||
if(isset($this->config->maxVersion))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user