Merge pull request #6376 from wandji20/wb-SCI-9490

Fix issue with text name when importing protocol eln file [SCI-9490]
This commit is contained in:
Alex Kriuchykhin 2023-10-06 15:23:11 +02:00 committed by GitHub
commit 42ef253e64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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