Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-19 20:38:40 +0300
committerDouwe Maan <douwe@selenight.nl>2016-08-19 20:38:40 +0300
commit080924f979df39ad96eb1ab4a029d032bcba6e86 (patch)
tree2451fa0f6a8d0eb82b42789b40150f6a13243910 /app/models/legacy_diff_note.rb
parent8d3ef366222423a295fed676bdddd1060071320e (diff)
Fix bug where notes weren’t shown in discussion when the code had changed after creation
Diffstat (limited to 'app/models/legacy_diff_note.rb')
-rw-r--r--app/models/legacy_diff_note.rb4
1 files changed, 4 insertions, 0 deletions
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,