Fix import of the old format TinyMCE images [SCI-4767]

This commit is contained in:
Oleksii Kriuchykhin 2020-07-27 16:39:39 +02:00
parent 1a8333612a
commit 60017661c1

View file

@ -146,7 +146,7 @@ module ProtocolsImporter
def populate_rte(object_json, object, team)
return populate_rte_legacy(object_json) unless object_json['descriptionAssets']
description = TinyMceAsset.update_old_tinymce(object_json['description'], nil)
description = TinyMceAsset.update_old_tinymce(object_json['description'], nil, true)
object_json['descriptionAssets'].values.each do |tiny_mce_img_json|
tiny_mce_img = TinyMceAsset.new(
object: object,