Showing
2 changed files
with
2 additions
and
2 deletions
| ... | ... | @@ -79,7 +79,7 @@ module Kanjai |
| 79 | 79 | subpart = page_template.template_parts.where(code: page_content.type_content).first |
| 80 | 80 | if subpart |
| 81 | 81 | markers_position = {} |
| 82 | - subpart.field_options.sort_by{|item| item[:itemName] }.each_with_index do |item, index| | |
| 82 | + subpart.field_options.sort_by{|item| item[:itemName].to_s }.each_with_index do |item, index| | |
| 83 | 83 | markers_position[item[:name]] = index + 1 |
| 84 | 84 | end |
| 85 | 85 | ... | ... |