Fix TinyMCE images in protocol clonning [SCI-4053]

This commit is contained in:
Oleksii Kriuchykhin 2019-11-05 18:13:44 +01:00
parent 67fdda1eeb
commit b2eda231a0

View file

@ -249,6 +249,7 @@ class Protocol < ApplicationRecord
def self.clone_contents(src, dest, current_user, clone_keywords) def self.clone_contents(src, dest, current_user, clone_keywords)
assets_to_clone = [] assets_to_clone = []
dest.update(description: src.description) dest.update(description: src.description)
src.clone_tinymce_assets(dest, dest.team)
# Update keywords # Update keywords
if clone_keywords if clone_keywords