diff --git a/app/assets/javascripts/protocols/import_export/import.js b/app/assets/javascripts/protocols/import_export/import.js index 25b5103f0..6e40fcbb4 100644 --- a/app/assets/javascripts/protocols/import_export/import.js +++ b/app/assets/javascripts/protocols/import_export/import.js @@ -595,7 +595,7 @@ function importProtocolFromFile( function stepTextJson(stepTextNode, folderIndex, stepGuid) { var json = {}; - + json.name = stepTextNode.children('name').text(); json.contents = $('
').html( stepTextNode.children('contents') .html() diff --git a/app/utilities/protocols_importer_v2.rb b/app/utilities/protocols_importer_v2.rb index 16b417acb..c7cfdb306 100644 --- a/app/utilities/protocols_importer_v2.rb +++ b/app/utilities/protocols_importer_v2.rb @@ -137,7 +137,7 @@ class ProtocolsImporterV2 step: step ) - step_text.update!(text: populate_rte(params, step_text)) + step_text.update!(text: populate_rte(params, step_text), name: params[:name]) create_in_step!(step, step_text) end