mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix copying of TinyMCE images when loading protocol from repository [SCI-7043]
This commit is contained in:
parent
8222227712
commit
cb71bb4a99
1 changed files with 3 additions and 3 deletions
|
@ -288,6 +288,9 @@ class Protocol < ApplicationRecord
|
|||
)
|
||||
step_text2.save!
|
||||
|
||||
# Copy steps tinyMce assets
|
||||
step_text.clone_tinymce_assets(step_text2, dest.team)
|
||||
|
||||
step2.step_orderable_elements.create!(
|
||||
position: step_text.step_orderable_element.position,
|
||||
orderable: step_text2
|
||||
|
@ -344,9 +347,6 @@ class Protocol < ApplicationRecord
|
|||
orderable: table2.step_table
|
||||
)
|
||||
end
|
||||
|
||||
# Copy steps tinyMce assets
|
||||
step.clone_tinymce_assets(step2, dest.team)
|
||||
end
|
||||
# Call clone helper
|
||||
Protocol.delay(queue: :assets).deep_clone_assets(assets_to_clone)
|
||||
|
|
Loading…
Reference in a new issue