Merge pull request #4377 from okriuchykhin/ok_SCI_7126

Fix export of protocols with empty step text fields [SCI-7126]
This commit is contained in:
Alex Kriuchykhin 2022-08-23 15:11:09 +02:00 committed by GitHub
commit 8744286d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ module ProtocolsExporterV2
"<!--[CDATA[ #{Nokogiri::HTML::DocumentFragment.parse(step_text.text)} ]]-->"\
"</contents>\n"
xml << get_tiny_mce_assets(step_text.text)
xml << get_tiny_mce_assets(step_text.text) if step_text.text.present?
xml << "</stepText>\n"
end