Fix issue with text name when importting protocol eln file [SCI-9490]

This commit is contained in:
wandji20 2023-10-06 14:19:42 +01:00
parent 7ec077ad1c
commit 8408b65818
2 changed files with 2 additions and 2 deletions

View file

@ -595,7 +595,7 @@ function importProtocolFromFile(
function stepTextJson(stepTextNode, folderIndex, stepGuid) {
var json = {};
json.name = stepTextNode.children('name').text();
json.contents = $('<div></div>').html(
stepTextNode.children('contents')
.html()

View file

@ -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