]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 686860: Correctly calculate Hours Worked in buglists
authorAlexei Volkov <Alexei.Volkov@softlynx.ru>
Tue, 18 Oct 2011 21:37:05 +0000 (23:37 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 18 Oct 2011 21:37:05 +0000 (23:37 +0200)
r/a=mkanat

Bugzilla/Search.pm

index 2e43d8273a4650d1cf87021ec1b45cdc047dc281..58e82902695bdb9dd92672cf41a98dfc113d034b 100644 (file)
@@ -296,7 +296,7 @@ sub COLUMNS {
     # Next we define columns that have special SQL instead of just something
     # like "bugs.bug_id".
     my $actual_time = '(SUM(ldtime.work_time)'
-        . ' * COUNT(DISTINCT ldtime.bug_when)/COUNT(bugs.bug_id))';
+        . ' * COUNT(DISTINCT ldtime.comment_id)/COUNT(bugs.bug_id))';
     my %special_sql = (
         deadline    => $dbh->sql_date_format('bugs.deadline', '%Y-%m-%d'),
         actual_time => $actual_time,