mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 22:23:28 +08:00
Fixes issue with reordering of checklist items [fixes SCI-380]
This commit is contained in:
parent
57563b9a18
commit
011bb2d910
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue