提交 aefdcdd4 编写于 作者: S Sato Hiroyuki

Fix postgres error when displaying network graph.

fix #4149
上级 ee2124b7
......@@ -25,7 +25,7 @@ module Network
def collect_notes
h = Hash.new(0)
@project.notes.where('noteable_type = ?' ,"Commit").group('notes.commit_id').select('notes.commit_id, count(notes.id) as note_count').each do |item|
h[item["commit_id"]] = item["note_count"]
h[item.commit_id] = item.note_count.to_i
end
h
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册