diff --git a/app/models/protocol.rb b/app/models/protocol.rb index 499b037dd..1b76a3ebd 100644 --- a/app/models/protocol.rb +++ b/app/models/protocol.rb @@ -346,7 +346,7 @@ class Protocol < ApplicationRecord step2.step_orderable_elements.create!( position: position, - orderable: table2 + orderable: table2.step_table ) position += 1