From 6307cd07e2ed34f0b9db594fe5276a1253c14445 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 15 Jun 2022 06:20:28 +0000 Subject: [PATCH] * Fix bug #23693.* Fix bug #23693.* Fix bug #23693.* Fix bug #23693.* Fix bug #23693.* Fix bug #23693.* Fix bug #23693.* Fix bug #23693. --- module/block/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/block/control.php b/module/block/control.php index 7cf9174997..b466b4b432 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1517,6 +1517,7 @@ class block extends control $projectID = $this->lang->navGroup->qa == 'project' ? $this->session->project : 0; $products = $this->loadModel('product')->getOrderedProducts($status, $count, $projectID); + $executions = $this->loadModel('execution')->getPairs($projectID, 'all', 'empty|withdelete'); if(empty($products)) { $this->view->products = $products; @@ -1536,6 +1537,7 @@ class block extends control count((closedDate >= '$yesterday' and closedDate < '$today') or null) as yesterdayClosed") ->from(TABLE_BUG) ->where('product')->in($productIdList) + ->andWhere('execution')->in(array_keys($executions)) ->andWhere('deleted')->eq(0) ->groupBy('product') ->fetchAll('product');