Showing
2 changed files
with
4 additions
and
1 deletions
| ... | ... | @@ -118,9 +118,11 @@ module Kanjai |
| 118 | 118 | scope = {lang: lang, row_item: index, repeat_id: repeat_id, parent_id: parent_id} |
| 119 | 119 | |
| 120 | 120 | exist_markers = page_content.page_content_markers.where(scope).pluck(:marker) |
| 121 | + uuid = page_content.page_content_markers.where(scope).first.uuid | |
| 121 | 122 | item[:field_options].select{|item| item[:attributes]['repeatItemId'] == repeat_id.to_s }.each do |marker| |
| 122 | 123 | unless exist_markers.include?(marker[:name]) |
| 123 | 124 | page_content.page_content_markers.create( |
| 125 | + uuid: uuid, | |
| 124 | 126 | marker: marker[:name], |
| 125 | 127 | row_item: index, |
| 126 | 128 | marker_name: marker[:itemName], |
| ... | ... | @@ -139,6 +141,7 @@ module Kanjai |
| 139 | 141 | item[:conditions].select{|item| item[:repeat_id].to_s == repeat_id.to_s }.each do |marker| |
| 140 | 142 | unless exist_markers.include?(marker[:id]) |
| 141 | 143 | page_content.page_content_markers.create( |
| 144 | + uuid: uuid, | |
| 142 | 145 | marker: marker[:id], |
| 143 | 146 | row_item: index, |
| 144 | 147 | marker_name: marker[:name], | ... | ... |