Skip to content
Snippets Groups Projects
Commit fe86dcfb authored by Sato Hiroyuki's avatar Sato Hiroyuki Committed by Dmitriy Zaporozhets
Browse files

Fix postgres error when displaying network graph.

fix #4149
parent 6470cfee
No related branches found
No related tags found
2 merge requests!103705 2 stable,!4341Added wiki-page search for 5-2-stable, Fixed issue #4310
This commit is part of merge request !10370. Comments created here will be created in the context of that merge request.
Loading
@@ -25,7 +25,7 @@ module Network
Loading
@@ -25,7 +25,7 @@ module Network
def collect_notes def collect_notes
h = Hash.new(0) 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| @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 end
h h
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment