Commit 1319373d authored by Riyad Preukschas's avatar Riyad Preukschas

Fix loading notes with empty line_code in Project#commit_notes

parent e8f10f31
...@@ -200,7 +200,7 @@ class Project < ActiveRecord::Base ...@@ -200,7 +200,7 @@ class Project < ActiveRecord::Base
end end
def commit_notes(commit) def commit_notes(commit)
notes.where(noteable_id: commit.id, noteable_type: "Commit", line_code: nil) notes.where(noteable_id: commit.id, noteable_type: "Commit").where('line_code IS NULL OR line_code = ""')
end end
def commit_line_notes(commit) def commit_line_notes(commit)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment