diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-04 09:58:12 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-04 09:58:12 +0300 |
commit | 568ce1edd7df2eaf511878ccc3b202fcad7931a3 (patch) | |
tree | c2d63ce850f220bd97719527311d9fa194b124ae /app/models/note.rb | |
parent | 64fb2c595aec7a18c7487062971210b59c0a9628 (diff) | |
download | gitlab-ce-568ce1edd7df2eaf511878ccc3b202fcad7931a3.tar.gz |
Fix notes for commits inside MR being squashed in one discussion
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index baf0634cf62..8274b866568 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -88,7 +88,7 @@ class Note < ActiveRecord::Base end def discussion_id - @discussion_id ||= [:discussion, noteable_type.try(:underscore), noteable_id, line_code].join("-").to_sym + @discussion_id ||= [:discussion, noteable_type.try(:underscore), noteable_id || commit_id, line_code].join("-").to_sym end # Returns true if this is a downvote note, |