From 7f84c6da14fde69360f98ec00a3fde858e179a1b Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Mon, 7 Jun 2021 16:43:47 +0800 Subject: [PATCH] * Fix bug#13079. --- module/testreport/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testreport/model.php b/module/testreport/model.php index 7dcf955db5..1a9c9851b8 100644 --- a/module/testreport/model.php +++ b/module/testreport/model.php @@ -505,7 +505,7 @@ class testreportModel extends model } return $this->dao->select('*')->from(TABLE_BUG)->where('deleted')->eq(0) ->andWhere('product')->in($product) - ->andWhere('openedDate')->lt($begin) + ->andWhere('openedDate')->lt("$begin 23:59:59") ->beginIF(is_array($builds) and $type == 'build')->andWhere('id')->in(trim($bugIdList, ','))->fi() ->beginIF(!is_array($builds) and $type == 'build')->andWhere("(resolvedBuild = 'trunk' and resolvedDate >= '$begin' and resolvedDate <= '$end 23:59:59')")->fi() ->beginIF($type == 'project')->andWhere("(id " . helper::dbIN(trim($bugIdList, ',')) . " OR (resolvedBuild = 'trunk' and resolvedDate >= '$begin' and resolvedDate <= '$end 23:59:59'))")