* Finish task #4473.

This commit is contained in:
liugang
2018-06-14 15:54:14 +08:00
parent 4988ee0985
commit 251d4844cc
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -123,6 +123,9 @@ class blockModel extends model
$blocks = $this->dao->select('*')->from(TABLE_BLOCK)->where('account')->eq($this->app->user->account)
->andWhere('module')->eq($module)
->andWhere('hidden')->eq(0)
->beginIF($this->config->global->flow == 'onlyStory')->andWhere('source')->notin('project,qa')->fi()
->beginIF($this->config->global->flow == 'onlyTask')->andWhere('source')->notin('product,qa')->fi()
->beginIF($this->config->global->flow == 'onlyTest')->andWhere('source')->notin('product,project')->fi()
->orderBy('`order`')
->fetchAll('id');