Skip to content

Commit

Permalink
Fix SQL error in summary page on PostgreSQL
Browse files Browse the repository at this point in the history
This is a regression introduced by the fix for issue #11928 (see commit
0c9dc2a) which was not detected before
as it was tested on MySQL which has more permissive SQL syntax.

Fixes #15201
  • Loading branch information
dregad committed Nov 12, 2012
1 parent df10eff commit 4143f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/summary_api.php
Expand Up @@ -640,7 +640,7 @@ function summary_print_by_category() {
FROM $t_mantis_bug_table b
JOIN $t_mantis_category_table c ON b.category_id=c.id
WHERE b.$specific_where
GROUP BY $t_project_query c.name, b.status
GROUP BY $t_project_query c.name, b.category_id, b.status
ORDER BY $t_project_query c.name";

$result = db_query( $query );
Expand Down

0 comments on commit 4143f30

Please sign in to comment.