diff --git a/module/bug/model.php b/module/bug/model.php index 4e678e66a6..3a21f6f23c 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -490,7 +490,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->eq($branch)->fi() ->beginIF(!empty($moduleIdList))->andWhere('module')->in($moduleIdList)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy)->page($pager)->fetchAll(); @@ -2638,7 +2638,7 @@ class bugModel extends model $bugs = $this->dao->select("t1.*, t2.title as planTitle, IF(t1.`pri` = 0, {$this->config->maxPriValue}, t1.`pri`) as priOrder, IF(t1.`severity` = 0, {$this->config->maxPriValue}, t1.`severity`) as severityOrder")->from(TABLE_BUG)->alias('t1') ->leftJoin(TABLE_PRODUCTPLAN)->alias('t2')->on('t1.plan = t2.id') ->where('t1.product')->in($productIDList) - ->andWhere('t1.execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('t1.execution')->in(array_keys($executions))->fi() ->beginIF($branch !== 'all')->andWhere('t1.branch')->eq($branch)->fi() ->beginIF($modules)->andWhere('t1.module')->in($modules)->fi() ->beginIF($projectID)->andWhere('t1.project')->eq($projectID)->fi() @@ -2672,7 +2672,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy)->page($pager)->fetchAll(); @@ -2699,7 +2699,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy)->page($pager)->fetchAll(); @@ -2726,7 +2726,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy)->page($pager)->fetchAll(); @@ -2754,7 +2754,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy)->page($pager)->fetchAll(); @@ -2777,7 +2777,7 @@ class bugModel extends model { return $this->dao->select("*, IF(`pri` = 0, {$this->config->maxPriValue}, `pri`) as priOrder, IF(`severity` = 0, {$this->config->maxPriValue}, `severity`) as severityOrder")->from(TABLE_BUG) ->where('product')->in($productIDList) - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->andWhere('confirmed')->eq(0) ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() @@ -2805,7 +2805,7 @@ class bugModel extends model { return $this->dao->select("*, IF(`pri` = 0, {$this->config->maxPriValue}, `pri`) as priOrder, IF(`severity` = 0, {$this->config->maxPriValue}, `severity`) as severityOrder")->from(TABLE_BUG) ->where('product')->in($productIDList) - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() @@ -2835,7 +2835,7 @@ class bugModel extends model { return $this->dao->select("*, IF(`pri` = 0, {$this->config->maxPriValue}, `pri`) as priOrder, IF(`severity` = 0, {$this->config->maxPriValue}, `severity`) as severityOrder")->from(TABLE_BUG) ->where('product')->in($productIDList) - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($status == 'unclosed')->andWhere('status')->ne('closed')->fi() @@ -2867,7 +2867,7 @@ class bugModel extends model return $this->dao->select("*, IF(`pri` = 0, {$this->config->maxPriValue}, `pri`) as priOrder, IF(`severity` = 0, {$this->config->maxPriValue}, `severity`) as severityOrder")->from(TABLE_BUG) ->where('lastEditedDate')->lt($lastEditedDate) ->andWhere('product')->in($productIDList) - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() @@ -2898,7 +2898,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy)->page($pager)->fetchAll(); @@ -2926,8 +2926,8 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('t1.branch')->in($branch)->fi() ->beginIF($modules)->andWhere('t1.module')->in($modules)->fi() ->beginIF($projectID)->andWhere('t1.project')->eq($projectID)->fi() + ->beginIF($this->app->tab !== 'qa')->andWhere('t1.execution')->in(array_keys($executions))->fi() ->andWhere('t2.version > t1.storyVersion') - ->andWhere('t1.execution')->in(array_keys($executions)) ->andWhere('t1.deleted')->eq(0) ->beginIF(!$this->app->user->admin)->andWhere('t1.project')->in('0,' . $this->app->user->view->projects)->fi() ->orderBy($orderBy) @@ -2956,7 +2956,7 @@ class bugModel extends model ->beginIF($branch !== 'all')->andWhere('branch')->in($branch)->fi() ->beginIF($modules)->andWhere('module')->in($modules)->fi() ->beginIF($projectID)->andWhere('project')->eq($projectID)->fi() - ->andWhere('execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('execution')->in(array_keys($executions))->fi() ->andWhere('deleted')->eq(0) ->andWhere('status')->ne('closed') ->andWhere('id')->in($actionIDList) @@ -3074,7 +3074,7 @@ class bugModel extends model $bugs = $this->dao->select("t1.*, t2.title as planTitle, IF(`pri` = 0, {$this->config->maxPriValue}, `pri`) as priOrder, IF(`severity` = 0, {$this->config->maxPriValue}, `severity`) as severityOrder")->from(TABLE_BUG)->alias('t1') ->leftJoin(TABLE_PRODUCTPLAN)->alias('t2')->on('t1.plan = t2.id') ->where('t1.product')->in($productIDList) - ->andWhere('t1.execution')->in(array_keys($executions)) + ->beginIF($this->app->tab !== 'qa')->andWhere('t1.execution')->in(array_keys($executions))->fi() ->beginIF($branch !== 'all')->andWhere('t1.branch')->eq($branch)->fi() ->beginIF($modules)->andWhere('t1.module')->in($modules)->fi() ->beginIF($projectID)->andWhere('t1.project')->eq($projectID)->fi() diff --git a/module/dev/config.php b/module/dev/config.php index 108c481640..697b172c04 100644 --- a/module/dev/config.php +++ b/module/dev/config.php @@ -240,3 +240,6 @@ $config->dev->postParams['testcase']['create']['steps'] = 'string'; $config->dev->postParams['testcase']['create']['expect'] = 'string'; $config->dev->postParams['testcase']['create']['mailto'] = 'string'; $config->dev->postParams['testcase']['create']['keywords'] = 'string'; + +$config->disableFeature = array(); +if(!helper::hasFeature('waterfall')) $config->disableFeature = array('design', 'stage', 'programplan', 'weekly', 'researchplan', 'researchreport', 'gapanalysis'); diff --git a/module/dev/view/api.html.php b/module/dev/view/api.html.php index c70cdb6eb1..de48267908 100644 --- a/module/dev/view/api.html.php +++ b/module/dev/view/api.html.php @@ -9,6 +9,7 @@
disableFeature and in_array($module, $config->disableFeature)) continue; $active = ($module == $selectedModule) ? 'active' : ''; $moduleName = zget($lang->dev->tableList, $module, $module); ?> diff --git a/module/my/view/preference.html.php b/module/my/view/preference.html.php index a76d8430c8..0169c4c5a5 100755 --- a/module/my/view/preference.html.php +++ b/module/my/view/preference.html.php @@ -22,7 +22,7 @@