* Fix program and project btn.

This commit is contained in:
Yagami
2020-09-22 10:53:23 +08:00
parent c321a1181c
commit cec65da271
4 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ class programModel extends model
public function getPGMList($status = 'all', $orderBy = 'id_desc', $pager = NULL)
{
return $this->dao->select('*')->from(TABLE_PROGRAM)
->where('type')->eq('program')
->where('type')->in('program,project')
->andWhere('deleted')->eq(0)
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->programs)->fi()
->beginIF($status != 'all')->andWhere('status')->eq($status)->fi()