Fix MR note discussion ID
This commit is contained in:
parent
ce8cb2f936
commit
dc098fde96
|
@ -268,7 +268,9 @@ class Note < ActiveRecord::Base
|
|||
|
||||
def build_discussion_id
|
||||
if for_merge_request?
|
||||
[:discussion, :note, id].join("-")
|
||||
# Notes on merge requests are always in a discussion of their own,
|
||||
# so we generate a unique discussion ID.
|
||||
[:discussion, :note, SecureRandom.hex].join("-")
|
||||
else
|
||||
self.class.build_discussion_id(noteable_type, noteable_id || commit_id)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue