From a96d19d5ea577bb42d6822b9c51f2b2f71466eef Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Mon, 11 May 2020 11:23:52 +0200 Subject: [PATCH] Add table name attribute to export schema --- app/utilities/protocols_exporter.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/utilities/protocols_exporter.rb b/app/utilities/protocols_exporter.rb index 1c05dfa02..94b87d3e2 100644 --- a/app/utilities/protocols_exporter.rb +++ b/app/utilities/protocols_exporter.rb @@ -116,10 +116,9 @@ module ProtocolsExporter if step.tables.count > 0 step_xml << "\n" step.tables.order(:id).each do |table| - table_xml = "\n" - table_xml << "#{table.contents.unpack1('H*')}" \ - "\n" + table_xml = "\n" + table_xml << "#{table.name}\n" + table_xml << "#{table.contents.unpack1('H*')}\n" table_xml << "\n" step_xml << table_xml end