Skip to content

Commit

Permalink
Fixing SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbeattie committed Mar 30, 2009
1 parent 5eb0079 commit 69f7eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/graphs_controller.rb
Expand Up @@ -33,7 +33,7 @@ def issue_growth_graph
})

# Get the top visible projects by issue count
sql = "SELECT project_id, COUNT(*) issue_count"
sql = "SELECT project_id, COUNT(*) as issue_count"
sql << " FROM issues"
sql << " LEFT JOIN #{Project.table_name} ON #{Issue.table_name}.project_id = #{Project.table_name}.id"
sql << " WHERE (%s)" % Project.allowed_to_condition(User.current, :view_issues)
Expand Down

0 comments on commit 69f7eed

Please sign in to comment.