mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 23:15:34 +08:00
Merge pull request #869 from Zanz2/Tables_and_protocol_info_integration
Made the two seperate branches from previous jira issues work together (fixed a small bug)
This commit is contained in:
commit
8ba27f734e
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…
Reference in a new issue