From b43ae18ca14405596ccee571662bdb44eb2ee4ae Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 4 Sep 2024 16:53:36 +0800 Subject: [PATCH] * [refac] remove useless code. --- module/metric/dataset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/metric/dataset.php b/module/metric/dataset.php index 27dea38801..79ab822bef 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -820,7 +820,7 @@ class dataset $stmt = $this->dao->select($fieldList)->from(TABLE_TASK)->alias('t1') ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.execution=t2.id') ->leftJoin(TABLE_PROJECT)->alias('t3')->on('t2.project=t3.id') - ->beginIF(strpos($fieldList, 't4') !== false)->leftJoin(TABLE_TASKTEAM)->alias('t4')->on("t1.id=t4.task and t1.mode='multi'")->fi() + ->leftJoin(TABLE_TASKTEAM)->alias('t4')->on("t1.id=t4.task and t1.mode='multi'") ->where('t2.type')->in('sprint,kanban,stage') ->andWhere('t1.deleted')->eq('0') ->andWhere('t2.deleted')->eq('0')