* Fix bugs of program action.

This commit is contained in:
朱金勇
2023-04-11 05:28:42 +00:00
parent e09c353162
commit 58f458f6d0
4 changed files with 35 additions and 20 deletions
+1 -1
View File
@@ -1131,7 +1131,7 @@ class programModel extends model
*/
public function hasUnfinished($program)
{
$unfinished = $this->dao->select("count(IF(id != {$program->id}, true, null)) as count")->from(TABLE_PROJECT)
$unfinished = $this->dao->select("count(IF(id != {$program->id}, 1, null)) as count")->from(TABLE_PROJECT)
->where('type')->in('program, project')
->andWhere('path')->like($program->path . '%')
->andWhere('status')->ne('closed')