This commit is contained in:
did 2011-09-22 01:38:23 +02:00
parent aa21cea13b
commit ce24270948
2 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ module Locomotive
end end
def set_highlighted_field_name(content_type) def set_highlighted_field_name(content_type)
field = content_type.content_custom_fields.detect { |f| f._alias == content_type.highlighted_field_name } field = content_type.content_custom_fields.detect { |f| f._alias == content_type.highlighted_field_name.to_s }
content_type.highlighted_field_name = field._name if field content_type.highlighted_field_name = field._name if field
end end

Binary file not shown.