From 2da93cdf7b9ad9e625895021cf72a6550fc7cfa0 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Nov 2023 14:38:53 +0800 Subject: [PATCH] * Fix bug #39723. --- module/program/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/program/model.php b/module/program/model.php index d1d79f40cb..37b4835ff7 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -1329,7 +1329,7 @@ class programModel extends model $tasks = $this->dao->select('t1.id, execution, t1.estimate, t1.consumed, t1.`left`, t1.status')->from(TABLE_TASK)->alias('t1') ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project=t2.id') ->where('t1.deleted')->eq(0) - ->andWhere('t1.parent')->le(0) // Ignore child task. + ->andWhere('t1.parent')->ge(0) // Ignore parent task. ->beginIF(!empty($projects))->andWhere('t1.project')->in(array_keys($projects))->fi() ->fetchAll('id');