mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-11-01 00:56:05 +08:00 
			
		
		
		
	Added some code to make the two seperate jira issues work together (protocol info and scinote tables
This commit is contained in:
		
							parent
							
								
									cd6799d571
								
							
						
					
					
						commit
						f35ab78849
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -1086,9 +1086,10 @@ class ProtocolsController < ApplicationController | ||||||
|     newj['0'] = {} |     newj['0'] = {} | ||||||
|     newj['0']['position'] = 0 |     newj['0']['position'] = 0 | ||||||
|     newj['0']['name'] = 'Protocol info' |     newj['0']['name'] = 'Protocol info' | ||||||
|     newj['0']['description'] = sanitize_input( |     newj['0']['tables'], table_str = protocolsio_string_to_table_element( | ||||||
|       protocols_io_fill_desc(original_json).html_safe |       sanitize_input(protocols_io_fill_desc(original_json).html_safe) | ||||||
|     ) |     ) | ||||||
|  |     newj['0']['description'] = table_str | ||||||
|     original_json['steps'].each_with_index do |step, pos_orig| # loop over steps |     original_json['steps'].each_with_index do |step, pos_orig| # loop over steps | ||||||
|       i = pos_orig + 1 |       i = pos_orig + 1 | ||||||
|       # position of step (first, second.... etc), |       # position of step (first, second.... etc), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue