diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-26 12:04:29 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 07:39:15 +0100 |
commit | 3c493c24c70f7c8dc8e1f3bcf29e18d1ef0944a7 (patch) | |
tree | 1f89261db74631a92f2ef5187ff0785a41b49333 /app/services/issues/move_service.rb | |
parent | efd8251751c85285e6519fd3dd756f74579da15b (diff) | |
download | gitlab-ce-3c493c24c70f7c8dc8e1f3bcf29e18d1ef0944a7.tar.gz |
Add reference unfold pipeline used when moving issue
Diffstat (limited to 'app/services/issues/move_service.rb')
-rw-r--r-- | app/services/issues/move_service.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb index a404a64cfe9..cf935f30ce3 100644 --- a/app/services/issues/move_service.rb +++ b/app/services/issues/move_service.rb @@ -86,10 +86,13 @@ module Issues :snippets, :commits, :commit_ranges] cross_project_mentionables.each do |type| - references.public_send(type).each do |mentionable| - new_content.gsub!(mentionable.to_reference, - mentionable.to_reference(@project_new)) - end + referables = references.public_send(type) + + context = { objects: referables, project: @project_new, + pipeline: :reference_unfold } + + new_content = Banzai.render_result(new_content, context) + new_content = new_content[:output].to_s end new_content |