Commit 086c632395f869d60cd13e35ec948734d5f93126

Authored by Karpikau Andrei
1 parent 213c4c14

duplicate also fields

... ... @@ -132,6 +132,12 @@ module Kanjai
132 132 @new_obj.structure_id = next_structure_id
133 133 @new_obj.save(validate: false)
134 134
  135 + @obj.page_content_markers.each do |item|
  136 + new_item = item.dup
  137 + item.page_content = @new_obj
  138 + item.save(validate: false)
  139 + end
  140 +
135 141 render json: {status: 'ok', id: next_structure_id}
136 142 end
137 143 end
... ...
1 1 module Kanjai
2   - VERSION = "0.0.135"
  2 + VERSION = "0.0.136"
3 3 end
... ...