mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Fix workflow image loading for moved experiments [SCI-3003]
This commit is contained in:
parent
7eb53d6408
commit
f68adf1e5e
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ module Experiments
|
|||
end
|
||||
|
||||
raise ActiveRecord::Rollback unless @exp.save
|
||||
# To pass the ExperimentsController#updated_img check
|
||||
@exp.update(workflowimg_updated_at: @exp.updated_at)
|
||||
end
|
||||
|
||||
@errors.merge!(@exp.errors.to_hash) unless @exp.valid?
|
||||
|
|
Loading…
Reference in a new issue