summaryrefslogtreecommitdiffstats
path: root/summarize_time.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-04-08 03:18:52 +0200
committermkanat%kerio.com <>2005-04-08 03:18:52 +0200
commit004d0c1cf93ac47317b490f83523c799f8651afd (patch)
tree40c95565f39cb0b2dc6990278cdf63aeb5d8f716 /summarize_time.cgi
parent95973482f21efcac37d4c608bf6c47d67d9bfca3 (diff)
downloadbugzilla-004d0c1cf93ac47317b490f83523c799f8651afd.tar.gz
bugzilla-004d0c1cf93ac47317b490f83523c799f8651afd.tar.xz
Bug 286686: ORDER BY column needs to be selected or grouped
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'summarize_time.cgi')
-rwxr-xr-xsummarize_time.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/summarize_time.cgi b/summarize_time.cgi
index 67bc255e8..eb3aff230 100755
--- a/summarize_time.cgi
+++ b/summarize_time.cgi
@@ -322,7 +322,8 @@ sub get_inactive_bugs {
WHERE longdescs.bug_id IN ($buglist)
$date_bits } .
$dbh->sql_group_by('longdescs.bug_id',
- 'bugs.short_desc, bugs.bug_status') . qq{
+ 'bugs.short_desc, bugs.bug_status,
+ longdescs.bug_when') . qq{
ORDER BY longdescs.bug_when};
$sth = $dbh->prepare($q);
$sth->execute(@{$date_values});