Commit cacd4c053d1c8fe5d0da469239b1ae110565f11e
1 parent
abb218e8
check error generate repeat element
Showing
2 changed files
with
2 additions
and
1 deletions
| @@ -251,6 +251,7 @@ module Kanjai | @@ -251,6 +251,7 @@ module Kanjai | ||
| 251 | 251 | ||
| 252 | row_index.each_with_index do |row_index, position| | 252 | row_index.each_with_index do |row_index, position| |
| 253 | value = scope.where(row_item: row_index).collect{|item| [item.marker, item.text_value] }.to_h | 253 | value = scope.where(row_item: row_index).collect{|item| [item.marker, item.text_value] }.to_h |
| 254 | + value ||= {} | ||
| 254 | value = value.merge(hash_value) | 255 | value = value.merge(hash_value) |
| 255 | if(position == 0) | 256 | if(position == 0) |
| 256 | value['###FIRST_ITEM_ACTIVE###'] = 'active show' | 257 | value['###FIRST_ITEM_ACTIVE###'] = 'active show' |