Commit 1319373d58c49eb96c1ec176f3057c2c31750b0e

Authored by Riyad Preukschas
1 parent e8f10f31

Fix loading notes with empty line_code in Project#commit_notes

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/project.rb
... ... @@ -200,7 +200,7 @@ class Project < ActiveRecord::Base
200 200 end
201 201  
202 202 def commit_notes(commit)
203   - notes.where(noteable_id: commit.id, noteable_type: "Commit", line_code: nil)
  203 + notes.where(noteable_id: commit.id, noteable_type: "Commit").where('line_code IS NULL OR line_code = ""')
204 204 end
205 205  
206 206 def commit_line_notes(commit)
... ...