* Finish task#8161.

This commit is contained in:
leiyong
2020-10-23 11:37:27 +08:00
parent baddd03444
commit dd304cd104
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -458,6 +458,7 @@ class programModel extends model
->fi()
->beginIF($from == 'product')
->andWhere('type')->eq('program')
->andWhere('grade')->eq(1)
->andWhere('id')->in($this->app->user->view->programs)
->fi()
->beginIF(!$this->cookie->showClosed)->andWhere('status')->ne('closed')->fi()
+1 -1
View File
@@ -2332,7 +2332,7 @@ class project extends control
return $this->send(array('result' => 'fail'));
}
$idList = explode(',', $this->post->projects);
$idList = explode(',', trim($this->post->projects, ','));
$projects = $this->dao->select('id, `order`')->from(TABLE_PROJECT)
->where('id')->in($idList)
->fetchPairs('id', 'order');