Fix loading notes with empty line_code in Project#commit_notes
This commit is contained in:
parent
e8f10f317f
commit
1319373d58
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue