summaryrefslogtreecommitdiff
path: root/lib/gitlab/email
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-10-20 16:16:57 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-10-20 16:18:53 +0800
commita4ef4244d4b9b54246f53bba5c02746542034da5 (patch)
tree2c5ba6b5abad99c7614d9bded9bdd427bb5584cf /lib/gitlab/email
parent8608beedb634860d834a4be29f31313ebdb797c2 (diff)
downloadgitlab-ce-a4ef4244d4b9b54246f53bba5c02746542034da5.tar.gz
Preserve note_type and position for notes from emails
Closes #23208
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r--lib/gitlab/email/handler/create_note_handler.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/email/handler/create_note_handler.rb b/lib/gitlab/email/handler/create_note_handler.rb
index 06dae31cc27..447c7a6a6b9 100644
--- a/lib/gitlab/email/handler/create_note_handler.rb
+++ b/lib/gitlab/email/handler/create_note_handler.rb
@@ -46,7 +46,9 @@ module Gitlab
noteable_type: sent_notification.noteable_type,
noteable_id: sent_notification.noteable_id,
commit_id: sent_notification.commit_id,
- line_code: sent_notification.line_code
+ line_code: sent_notification.line_code,
+ position: sent_notification.position,
+ type: sent_notification.note_type
).execute
end
end