Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -219,7 +219,7 @@ module Kanjai | @@ -219,7 +219,7 @@ module Kanjai | ||
| 219 | subparts << self.replace_text_marker(item[:source], hash_value) | 219 | subparts << self.replace_text_marker(item[:source], hash_value) |
| 220 | when 'repeat' | 220 | when 'repeat' |
| 221 | hash_value ||= {} | 221 | hash_value ||= {} |
| 222 | - repeat_item_index = hash_value['REPEAT_ITEM_INDEX'] || 1 | 222 | + repeat_item_index = hash_value['REPEAT_ITEM_INDEX'].to_i || 1 |
| 223 | repeat_id = item[:attributes]['id'] | 223 | repeat_id = item[:attributes]['id'] |
| 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? |
| @@ -243,7 +243,7 @@ module Kanjai | @@ -243,7 +243,7 @@ module Kanjai | ||
| 243 | value['###REPEAT_CYCLE_COUNT###'] = repeat_item_index.to_s | 243 | value['###REPEAT_CYCLE_COUNT###'] = repeat_item_index.to_s |
| 244 | value['PARENT_ITEM_ID'] = row_index.to_s | 244 | value['PARENT_ITEM_ID'] = row_index.to_s |
| 245 | repeat_item_index += 1 | 245 | repeat_item_index += 1 |
| 246 | - value['REPEAT_ITEM_INDEX'] = repeat_item_index | 246 | + value['REPEAT_ITEM_INDEX'] = repeat_item_index.to_s |
| 247 | self.content_generator(session, domain, item[:children], subparts, value) | 247 | self.content_generator(session, domain, item[:children], subparts, value) |
| 248 | 248 | ||
| 249 | end | 249 | end |