Do not unfold non-referables when moving an issue

This commit is contained in:
Grzegorz Bizon 2016-03-01 14:18:51 +01:00
parent 9124ebce98
commit cd0f194508

View file

@ -21,6 +21,8 @@ module Banzai
def call
@referables.each do |referable|
next unless referable.respond_to?(:to_reference)
pattern = /#{Regexp.escape(referable.to_reference)}/
@text.gsub!(pattern, referable.to_reference(@new_project))
end