Merge pull request #1481 from mz3944/mz-SCI-3003

Experiment image is not updated after move of an experiment to another project [SCI-3003]
This commit is contained in:
mz3944 2019-02-07 04:42:36 +01:00 committed by GitHub
commit 108d8474f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?