summaryrefslogtreecommitdiff
path: root/app/models/individual_note_discussion.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /app/models/individual_note_discussion.rb
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
downloadgitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'app/models/individual_note_discussion.rb')
-rw-r--r--app/models/individual_note_discussion.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/models/individual_note_discussion.rb b/app/models/individual_note_discussion.rb
index bdfa6dcc6bd..c3ccf44d27e 100644
--- a/app/models/individual_note_discussion.rb
+++ b/app/models/individual_note_discussion.rb
@@ -17,12 +17,8 @@ class IndividualNoteDiscussion < Discussion
noteable.supports_replying_to_individual_notes?
end
- def convert_to_discussion!(save: false)
- first_note.becomes!(Discussion.note_class).to_discussion.tap do
- # Save needs to be called on first_note instead of the transformed note
- # because of https://gitlab.com/gitlab-org/gitlab-foss/issues/57324
- first_note.save if save
- end
+ def convert_to_discussion!
+ first_note.becomes!(Discussion.note_class).to_discussion
end
def reply_attributes