From 6ccf1be34b4e53d6b5378253def053b5931dc17c Mon Sep 17 00:00:00 2001 From: azhi Date: Wed, 31 Jul 2013 14:16:18 +0800 Subject: [PATCH] * fix bug: validRate must including closed bugs. --- module/report/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/report/model.php b/module/report/model.php index 660332b8b0..0a3f5e5b93 100644 --- a/module/report/model.php +++ b/module/report/model.php @@ -402,7 +402,7 @@ EOT; { $bugSummary[$bug->openedBy][$bug->resolution] = empty($bugSummary[$bug->openedBy][$bug->resolution]) ? 1 : $bugSummary[$bug->openedBy][$bug->resolution] + 1; $bugSummary[$bug->openedBy]['all'] = empty($bugSummary[$bug->openedBy]['all']) ? 1 : $bugSummary[$bug->openedBy]['all'] + 1; - if($bug->status == 'resolved') + if($bug->status == 'resolved' or $bug->status == 'closed') { $bugSummary[$bug->openedBy]['resolved'] = empty($bugSummary[$bug->openedBy]['resolved']) ? 1 : $bugSummary[$bug->openedBy]['resolved'] + 1; }