Merge pull request #949 from okriuchykhin/ok_SCI_1951

Fix fetching protocol name in protocol import [SCI-1951]
This commit is contained in:
okriuchykhin 2018-01-19 14:05:35 +01:00 committed by GitHub
commit 37e4a26271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ module ProtocolsExporter
protocol_xml = "<eln xmlns=\"http://www.scinote.net\" version=\"1.0\">\n" protocol_xml = "<eln xmlns=\"http://www.scinote.net\" version=\"1.0\">\n"
protocol_xml << "<protocol id=\"#{protocol.id}\" " \ protocol_xml << "<protocol id=\"#{protocol.id}\" " \
"guid=\"#{get_guid(protocol.id)}\">\n" "guid=\"#{get_guid(protocol.id)}\">\n"
protocol_xml << "<name><![CDATA[ #{protocol_name} ]]></name>\n" protocol_xml << "<name>#{protocol_name}</name>\n"
protocol_xml << "<authors>#{protocol.authors}</authors>\n" protocol_xml << "<authors>#{protocol.authors}</authors>\n"
protocol_xml << "<description>#{protocol.description}</description>\n" protocol_xml << "<description>#{protocol.description}</description>\n"
protocol_xml << "<created_at>#{protocol.created_at.as_json}</created_at>\n" protocol_xml << "<created_at>#{protocol.created_at.as_json}</created_at>\n"