Commit b1020ce9026b05b87e6c4a5bc7bdd33c44513383
1 parent
cacd4c05
check error generate repeat element
Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -252,7 +252,7 @@ module Kanjai | @@ -252,7 +252,7 @@ module Kanjai | ||
| 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 ||= {} |
| 255 | - value = value.merge(hash_value) | 255 | + value = value.merge(hash_value) if hash_value |
| 256 | if(position == 0) | 256 | if(position == 0) |
| 257 | value['###FIRST_ITEM_ACTIVE###'] = 'active show' | 257 | value['###FIRST_ITEM_ACTIVE###'] = 'active show' |
| 258 | value['###FIRST_ITEM_TRUE###'] = 'true' | 258 | value['###FIRST_ITEM_TRUE###'] = 'true' |