Commit e7e6061341d34c8b258a960016c39fcd11b890c3

Authored by Andrey Karpikov
1 parent 2005bd11

check repeat element

@@ -218,7 +218,7 @@ module Kanjai @@ -218,7 +218,7 @@ module Kanjai
218 when 'text' 218 when 'text'
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 - repeat_item_index = value['REPEAT_ITEM_INDEX'] || 1 221 + repeat_item_index = hash_value['REPEAT_ITEM_INDEX'] || 1
222 repeat_id = item[:attributes]['id'] 222 repeat_id = item[:attributes]['id']
223 scope = @page_content.page_content_markers.where(repeat_id: repeat_id) 223 scope = @page_content.page_content_markers.where(repeat_id: repeat_id)
224 if hash_value && hash_value['PARENT_ITEM_ID'].present? 224 if hash_value && hash_value['PARENT_ITEM_ID'].present?
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.282" 2 + VERSION = "0.0.283"
3 end 3 end