mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-11-01 00:56:05 +08:00 
			
		
		
		
	Add table name attribute to export schema
This commit is contained in:
		
							parent
							
								
									80332eb4a0
								
							
						
					
					
						commit
						a96d19d5ea
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -116,10 +116,9 @@ module ProtocolsExporter | ||||||
|         if step.tables.count > 0 |         if step.tables.count > 0 | ||||||
|           step_xml << "<elnTables>\n" |           step_xml << "<elnTables>\n" | ||||||
|           step.tables.order(:id).each do |table| |           step.tables.order(:id).each do |table| | ||||||
|             table_xml = "<elnTable id=\"#{table.id}\" " \ |             table_xml = "<elnTable id=\"#{table.id}\" guid=\"#{get_guid(table.id)}\">\n" | ||||||
|                         "guid=\"#{get_guid(table.id)}\">\n" |             table_xml << "<name>#{table.name}</name>\n" | ||||||
|             table_xml << "<contents>#{table.contents.unpack1('H*')}" \ |             table_xml << "<contents>#{table.contents.unpack1('H*')}</contents>\n" | ||||||
|                          "</contents>\n" |  | ||||||
|             table_xml << "</elnTable>\n" |             table_xml << "</elnTable>\n" | ||||||
|             step_xml << table_xml |             step_xml << table_xml | ||||||
|           end |           end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue