Merge pull request #4164 from hiroponz/fix-postgres-error
Fix postgres error when displaying network graph.
This commit is contained in:
commit
c0d7b5bb70
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue