mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 09:26:37 +08:00
Fix module moving position not being updated
This commit is contained in:
parent
67768c8865
commit
dff5abf3d9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue