From 881251fe14b043012712bf689fb24f563d6cf230 Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Fri, 19 Nov 2021 14:06:26 +0100 Subject: [PATCH] Skip null subjects for activities moving [SCI-6285] (#3686) Co-authored-by: Anton --- app/services/experiments/move_to_project_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/experiments/move_to_project_service.rb b/app/services/experiments/move_to_project_service.rb index fc48a2bfd..4b0bcfc6d 100644 --- a/app/services/experiments/move_to_project_service.rb +++ b/app/services/experiments/move_to_project_service.rb @@ -97,6 +97,7 @@ module Experiments child_associations.each do |child_association| [subject.public_send(child_association)].flatten.each do |child_subject| + next unless child_subject move_activities!(child_subject) end end