Skip to content
Snippets Groups Projects
Commit 1319373d authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Fix loading notes with empty line_code in Project#commit_notes

parent e8f10f31
No related branches found
No related tags found
1 merge request!1878Discussions (a.k.a. Grouped Comments)
Loading
Loading
@@ -200,7 +200,7 @@ class Project < ActiveRecord::Base
end
 
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
 
def commit_line_notes(commit)
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