This commit is contained in:
liuhong
2022-08-23 09:23:09 +00:00
parent 7d89582ab7
commit 329238d8cd
+1 -2
View File
@@ -758,8 +758,7 @@ class projectModel extends model
->where('type')->eq('project')
->andWhere('deleted')->eq(0)
->andWhere('vision')->eq($this->config->vision)
->beginIF($programID !== '' and $this->app->tab !== 'product')->andWhere('parent')->eq($programID)->fi()
->beginIF($programID !== '' and $this->app->tab == 'product')->andWhere('path')->like("%,$programID,%")->fi()
->beginIF($programID !== '')->andWhere('path')->like("%,$programID,%")->fi()
->beginIF($status != 'all' and $status != 'noclosed')->andWhere('status')->eq($status)->fi()
->beginIF($excludedModel)->andWhere('model')->ne($excludedModel)->fi()
->beginIF($model)->andWhere('model')->eq($model)->fi()