From 60017661c122de5de5499ac26da49116af9fd32d Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 27 Jul 2020 16:39:39 +0200 Subject: [PATCH] Fix import of the old format TinyMCE images [SCI-4767] --- app/utilities/protocols_importer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utilities/protocols_importer.rb b/app/utilities/protocols_importer.rb index d19887583..12e2c0510 100644 --- a/app/utilities/protocols_importer.rb +++ b/app/utilities/protocols_importer.rb @@ -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,