From ba3feadb9d10a93312e36f284c6f679d6434f836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Mon, 17 Apr 2023 07:52:08 +0000 Subject: [PATCH] * Fix bug#34244. --- module/story/model.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index c2648ea8fa..b1e87bd4de 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4170,9 +4170,12 @@ class storyModel extends model */ public function getDataOfStorysPerModule() { - $datas = $this->dao->select('module as name, count(module) as value, product, branch')->from(TABLE_STORY) + $datas = $this->dao->select('module as name, count(module) as value, product, branch') + ->from(TABLE_STORY) ->where($this->reportCondition()) - ->groupBy('module')->orderBy('value DESC')->fetchAll('name'); + ->groupBy('module,product,branch') + ->orderBy('value DESC') + ->fetchAll('name'); if(!$datas) return array(); $branchIDList = array();