From 3d00249644cb93a85d4f8244b7cb71e0499ee7cb Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Tue, 23 Aug 2022 14:30:30 +0200 Subject: [PATCH] Fix export of protocols with empty step text fields [SCI-7126] --- app/utilities/protocols_exporter_v2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utilities/protocols_exporter_v2.rb b/app/utilities/protocols_exporter_v2.rb index 3603251c8..0213f65a6 100644 --- a/app/utilities/protocols_exporter_v2.rb +++ b/app/utilities/protocols_exporter_v2.rb @@ -91,7 +91,7 @@ module ProtocolsExporterV2 ""\ "\n" - xml << get_tiny_mce_assets(step_text.text) + xml << get_tiny_mce_assets(step_text.text) if step_text.text.present? xml << "\n" end