mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +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!
|
step_text2.save!
|
||||||
|
|
||||||
|
# Copy steps tinyMce assets
|
||||||
|
step_text.clone_tinymce_assets(step_text2, dest.team)
|
||||||
|
|
||||||
step2.step_orderable_elements.create!(
|
step2.step_orderable_elements.create!(
|
||||||
position: step_text.step_orderable_element.position,
|
position: step_text.step_orderable_element.position,
|
||||||
orderable: step_text2
|
orderable: step_text2
|
||||||
|
@ -344,9 +347,6 @@ class Protocol < ApplicationRecord
|
||||||
orderable: table2.step_table
|
orderable: table2.step_table
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Copy steps tinyMce assets
|
|
||||||
step.clone_tinymce_assets(step2, dest.team)
|
|
||||||
end
|
end
|
||||||
# Call clone helper
|
# Call clone helper
|
||||||
Protocol.delay(queue: :assets).deep_clone_assets(assets_to_clone)
|
Protocol.delay(queue: :assets).deep_clone_assets(assets_to_clone)
|
||||||
|
|
Loading…
Reference in a new issue