Commit 6b09b0b6f2ddee23d2f93dca5282726f2a9023e3

Authored by Andrey Karpikov
1 parent b4b8d013

check repeat element

@@ -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'].to_i || 1 222 + repeat_item_index = hash_value['REPEAT_ITEM_INDEX'].to_i || 0
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?
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.285" 2 + VERSION = "0.0.286"
3 end 3 end