mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 13:28:53 +08:00
Merge pull request #161 from okriuchykhin/ok_SCI-380
Fixes issue with reordering of checklist items [fixes SCI-380]
This commit is contained in:
commit
a7f3f793c8
1 changed files with 5 additions and 1 deletions
|
@ -241,9 +241,13 @@ class Protocol < ActiveRecord::Base
|
||||||
item2 = ChecklistItem.new(
|
item2 = ChecklistItem.new(
|
||||||
text: item.text,
|
text: item.text,
|
||||||
checked: false,
|
checked: false,
|
||||||
checklist: checklist2)
|
checklist: checklist2,
|
||||||
|
position: item.position
|
||||||
|
)
|
||||||
item2.created_by = current_user
|
item2.created_by = current_user
|
||||||
item2.last_modified_by = current_user
|
item2.last_modified_by = current_user
|
||||||
|
p item
|
||||||
|
p item2
|
||||||
item2.save
|
item2.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue