mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-25 08:14:17 +08:00
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:
commit
42ef253e64
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue