From 080924f979df39ad96eb1ab4a029d032bcba6e86 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Fri, 19 Aug 2016 12:38:40 -0500 Subject: =?UTF-8?q?Fix=20bug=20where=20notes=20weren=E2=80=99t=20shown=20i?= =?UTF-8?q?n=20discussion=20when=20the=20code=20had=20changed=20after=20cr?= =?UTF-8?q?eation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/legacy_diff_note.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/legacy_diff_note.rb') diff --git a/app/models/legacy_diff_note.rb b/app/models/legacy_diff_note.rb index 8e26cbe9835..40277a9b139 100644 --- a/app/models/legacy_diff_note.rb +++ b/app/models/legacy_diff_note.rb @@ -49,6 +49,10 @@ class LegacyDiffNote < Note !line.meta? && diff_file.line_code(line) == self.line_code end + def original_line_code + self.line_code + end + # Check if this note is part of an "active" discussion # # This will always return true for anything except MergeRequest noteables, -- cgit v1.2.3