From: Alexei Volkov Date: Tue, 18 Oct 2011 21:37:05 +0000 (+0200) Subject: Bug 686860: Correctly calculate Hours Worked in buglists X-Git-Tag: bugzilla-4.0.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42df314211a555051fec00038be43459ceb745a8;p=thirdparty%2Fbugzilla.git Bug 686860: Correctly calculate Hours Worked in buglists r/a=mkanat --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 2e43d8273a..58e8290269 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -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,