Fix workflow image loading for moved experiments [SCI-3003]

This commit is contained in:
Matej Zrimšek 2019-02-06 07:51:43 +01:00
parent 7eb53d6408
commit f68adf1e5e

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?