fix problem with protocol export

This commit is contained in:
Mojca Lorber 2017-01-25 16:12:48 +01:00
parent e8a0dfbb04
commit 99a40961fa

View file

@ -94,9 +94,9 @@ module ProtocolsExporter
checklist_xml = "<checklist id=\"#{checklist.id}\" " \ checklist_xml = "<checklist id=\"#{checklist.id}\" " \
"guid=\"#{get_guid(checklist.id)}\">\n" "guid=\"#{get_guid(checklist.id)}\">\n"
checklist_xml << "<name>#{checklist.name}</name>\n" checklist_xml << "<name>#{checklist.name}</name>\n"
if checklist.items if checklist.checklist_items
checklist_xml << "<items>\n" checklist_xml << "<items>\n"
checklist.items.each do |item| checklist.checklist_items.each do |item|
item_xml = "<item id=\"#{item.id}\" " \ item_xml = "<item id=\"#{item.id}\" " \
"guid=\"#{get_guid(item.id)}\" " \ "guid=\"#{get_guid(item.id)}\" " \
"position=\"#{item.position}\">\n" "position=\"#{item.position}\">\n"