Commit ba7b76131b9bfc16d044fbc2cf31de33435f46d4

Authored by Andrey Karpikov
1 parent e512fb5d

check repeat element

@@ -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'])
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.287" 2 + VERSION = "0.0.288"
3 end 3 end