Fixes issue with reordering of checklist items [fixes SCI-380]

This commit is contained in:
Oleksii Kriuchykhin 2016-09-21 14:06:47 +02:00
parent 57563b9a18
commit 011bb2d910

View file

@ -239,9 +239,12 @@ class Protocol < ActiveRecord::Base
item2 = ChecklistItem.new(
text: item.text,
checked: false,
checklist: checklist2)
checklist: checklist2,
position: item.position)
item2.created_by = current_user
item2.last_modified_by = current_user
p item
p item2
item2.save
end