Commit cd0f1945 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not unfold non-referables when moving an issue

parent 9124ebce
...@@ -21,6 +21,8 @@ module Banzai ...@@ -21,6 +21,8 @@ module Banzai
def call def call
@referables.each do |referable| @referables.each do |referable|
next unless referable.respond_to?(:to_reference)
pattern = /#{Regexp.escape(referable.to_reference)}/ pattern = /#{Regexp.escape(referable.to_reference)}/
@text.gsub!(pattern, referable.to_reference(@new_project)) @text.gsub!(pattern, referable.to_reference(@new_project))
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment