* filter project by vision for doclib creation.

This commit is contained in:
Wenrui LI
2022-01-20 14:47:18 +08:00
parent 1e715c26f7
commit acbcfb8f52
2 changed files with 3 additions and 0 deletions

View File

@@ -489,6 +489,7 @@ class projectModel extends model
return $this->dao->select('id, name')->from(TABLE_PROJECT)
->where('type')->eq('project')
->andWhere('deleted')->eq(0)
->andWhere('vision')->eq($this->config->vision)
->beginIF($programID !== '')->andWhere('parent')->eq($programID)->fi()
->beginIF($status != 'all' && $status != 'noclosed')->andWhere('status')->eq($status)->fi()
->beginIF($status == 'noclosed')->andWhere('status')->ne('closed')->fi()