Commit 0bf4b7068863fabb474dd8bcc425c37a7daf1afd

Authored by Andrey Karpikov
1 parent 0d51644f

check sorting

... ... @@ -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
... ...
1 1 module Kanjai
2   - VERSION = "0.0.249"
  2 + VERSION = "0.0.250"
3 3 end
... ...