mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 11:14:24 +08:00
Refactor github code review
This commit is contained in:
parent
66e5004e60
commit
f5b2ad0d34
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue