Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -219,8 +219,8 @@ module Kanjai | @@ -219,8 +219,8 @@ module Kanjai | ||
| 219 | when 'text' | 219 | when 'text' |
| 220 | subparts << self.replace_text_marker(item[:source], hash_value) | 220 | subparts << self.replace_text_marker(item[:source], hash_value) |
| 221 | when 'repeat' | 221 | when 'repeat' |
| 222 | - @repeat_type_index[repeat_id] ||= 0 | ||
| 223 | repeat_id = item[:attributes]['id'] | 222 | repeat_id = item[:attributes]['id'] |
| 223 | + @repeat_type_index[repeat_id] ||= 0 | ||
| 224 | scope = @page_content.page_content_markers.where(repeat_id: repeat_id) | 224 | scope = @page_content.page_content_markers.where(repeat_id: repeat_id) |
| 225 | if hash_value && hash_value['PARENT_ITEM_ID'].present? | 225 | if hash_value && hash_value['PARENT_ITEM_ID'].present? |
| 226 | scope = scope.where(parent_id: hash_value['PARENT_ITEM_ID']) | 226 | scope = scope.where(parent_id: hash_value['PARENT_ITEM_ID']) |