* fix code

This commit is contained in:
Zongjun Lan
2022-04-21 09:32:11 +08:00
parent a700b8994c
commit cc17a999ec
+1 -1
View File
@@ -556,7 +556,7 @@ class projectModel extends model
->andWhere('deleted')->eq(0)
->beginIF($projectIdList)->andWhere('id')->in($projectIdList)->fi()
->beginIF(!$this->app->user->admin and $mode != 'all')->andWhere('id')->in($this->app->user->view->projects)->fi()
->beginIF($mode != 'all' and !empty($mode))->andWhere('model')->in(explode(',', $mode))->fi()
->beginIF($mode != 'all' and !empty($mode))->andWhere('model')->in($mode)->fi()
->fetchPairs('id', 'name');
}