From dff5abf3d98f7974ea0a89af6483fdb7ebae97de Mon Sep 17 00:00:00 2001 From: Jure Grabnar Date: Wed, 24 Aug 2016 11:42:21 +0200 Subject: [PATCH] Fix module moving position not being updated --- app/models/experiment.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/experiment.rb b/app/models/experiment.rb index 067613628..70024814a 100644 --- a/app/models/experiment.rb +++ b/app/models/experiment.rb @@ -196,9 +196,6 @@ class Experiment < ActiveRecord::Base updated_module_groups[new_ids.fetch(id, id)] = name end - # Finally move any modules to another experiment - move_modules(updated_to_move) - # Update connections update_module_connections(updated_connections) @@ -211,6 +208,9 @@ class Experiment < ActiveRecord::Base # Finally, update module groups update_module_groups(updated_module_groups, current_user) + # Finally move any modules to another experiment + move_modules(updated_to_move) + # Everyhing is set, now we can move any module groups move_module_groups(updated_to_move_groups) end