Refactor github code review

This commit is contained in:
Zanz2 2017-10-07 16:07:04 +02:00
parent 66e5004e60
commit f5b2ad0d34
3 changed files with 4 additions and 4 deletions

View file

@ -1022,8 +1022,7 @@ class ProtocolsController < ApplicationController
append = I18n.t('protocols.protocols_io_import.comp_append.expected_result') +
iterating_key['data'] + '<br>'
result['steps'][pos2.to_s]['description'] << append
byebug
end #dbg
end
result
end

View file

@ -45,7 +45,6 @@ module ProtocolsImporter
def populate_protocol(protocol, protocol_json, user, team)
protocol.reload
asset_ids = []
step_pos = 0
# Check if protocol has steps

View file

@ -1,4 +1,6 @@
<%= form_for(@protocol, :url => url_for(:controller => 'protocols', :action=>'protocolsio_import_save'),method: :post,format: :javascript,remote: true,:html=> { :id => "protocolsio-import-form" }) do |f| %>
<%= form_for(@protocol, :url => url_for(:controller => 'protocols',
:action=>'protocolsio_import_save'),method: :post,format: :javascript,
remote: true, :html=> { :id => "protocolsio-import-form" }) do |f| %>
<%= hidden_field_tag :json_object, JSON.generate(@json_object) %>