Merge pull request #2758 from urbanrotnik/ur-sci-4750

Fix task error [SCI-4750]
This commit is contained in:
Urban Rotnik 2020-07-24 15:26:56 +02:00 committed by GitHub
commit 4d2169c916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ class TinyMceAsset < ApplicationRecord
asset.team.save
end
def self.update_old_tinymce(description, obj = nil)
def self.update_old_tinymce(description, obj = nil, import = false)
return description unless description
description.scan(/\[~tiny_mce_id:(\w+)\]/).flatten.each do |token|