mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
Skip asset if file is missing in protocol export [SCI-2250]
This commit is contained in:
parent
2356b78044
commit
ecd3c73772
1 changed files with 1 additions and 0 deletions
|
@ -739,6 +739,7 @@ class ProtocolsController < ApplicationController
|
|||
step_dir = "#{protocol_dir}/#{step_guid}"
|
||||
if step.assets.exists?
|
||||
step.assets.order(:id).each do |asset|
|
||||
next unless asset.file.exists?
|
||||
asset_guid = get_guid(asset.id)
|
||||
asset_file_name = asset_guid.to_s +
|
||||
File.extname(asset.file_file_name).to_s
|
||||
|
|
Loading…
Reference in a new issue