Merge pull request #161 from okriuchykhin/ok_SCI-380

Fixes issue with reordering of checklist items [fixes SCI-380]
This commit is contained in:
okriuchykhin 2016-09-23 10:37:56 +02:00 committed by GitHub
commit a7f3f793c8

View file

@ -241,9 +241,13 @@ 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