* Fix projectlist.

This commit is contained in:
tanghucheng
2022-01-25 16:27:13 +08:00
parent ca32fb848f
commit 1f81f7cef8
2 changed files with 2 additions and 2 deletions

View File

@@ -260,6 +260,7 @@ class projectModel extends model
$queryType = strtolower($queryType);
$projects = $this->dao->select('*')->from(TABLE_PROJECT)
->where('type')->eq('project')
->andWhere('vision')->eq($this->config->vision)
->andWhere('deleted')->eq(0)
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->projects)->fi()
->beginIF($queryType == 'bystatus' and $param == 'undone')->andWhere('status')->notIN('done,closed')->fi()