mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 09:13:46 +08:00
Merge pull request #2129 from okriuchykhin/ok_SCI_3950
Improve missing files handling when clonning TinyMceAsset [SCI-3950]
This commit is contained in:
commit
39a2669eef
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module TinyMceImages
|
|||
def clone_tinymce_assets(target, team)
|
||||
cloned_img_ids = []
|
||||
tiny_mce_assets.each do |tiny_img|
|
||||
next unless tiny_img.image.service.exist?(tiny_img.image.blob.key)
|
||||
next unless tiny_img.image.attached? && tiny_img.image.service.exist?(tiny_img.image.blob.key)
|
||||
|
||||
tiny_img_clone = TinyMceAsset.create(
|
||||
estimated_size: tiny_img.estimated_size,
|
||||
|
|
Loading…
Reference in a new issue