From 36392f6b0cf304e868e4370bbc12eda191ecf7f2 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 29 Mar 2021 20:20:45 +0800 Subject: [PATCH] * Fix bug #11222. --- module/report/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/report/model.php b/module/report/model.php index a5b5f4860f..359b0f73a7 100644 --- a/module/report/model.php +++ b/module/report/model.php @@ -752,6 +752,7 @@ class reportModel extends model { /* Get changed executions in this year. */ $executions = $this->dao->select('id,name')->from(TABLE_EXECUTION)->where('deleted')->eq(0) + ->andwhere('type')->eq('sprint') ->andWhere('LEFT(begin, 4)', true)->eq($year) ->orWhere('LEFT(end, 4)')->eq($year) ->markRight(1) @@ -781,6 +782,7 @@ class reportModel extends model $executions += $this->dao->select('id,name')->from(TABLE_EXECUTION) ->where('id')->in($teamExecutions + $taskExecutions) ->andWhere('deleted')->eq(0) + ->andWhere('type')->eq('sprint') ->orderBy('`order` desc') ->fetchAll('id'); }