From f68adf1e5e404f95a938de51cb92ec4556d100de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Zrim=C5=A1ek?= Date: Wed, 6 Feb 2019 07:51:43 +0100 Subject: [PATCH] Fix workflow image loading for moved experiments [SCI-3003] --- app/services/experiments/move_to_project_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/experiments/move_to_project_service.rb b/app/services/experiments/move_to_project_service.rb index 088bbc7b0..19c68f8fc 100644 --- a/app/services/experiments/move_to_project_service.rb +++ b/app/services/experiments/move_to_project_service.rb @@ -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?