diff --git a/lib/locomotive/import/content_types.rb b/lib/locomotive/import/content_types.rb index f2e17000..d6903d00 100644 --- a/lib/locomotive/import/content_types.rb +++ b/lib/locomotive/import/content_types.rb @@ -189,7 +189,7 @@ module Locomotive content = content._parent.reload.contents.find(content._id) # target should be updated associations.each do |association| - target_content_type = site.content_types.where(:name => association.target).first + target_content_type = site.content_types.where(:slug => association.target).first next if target_content_type.nil? @@ -240,4 +240,4 @@ module Locomotive end end -end \ No newline at end of file +end diff --git a/spec/fixtures/themes/default.zip b/spec/fixtures/themes/default.zip index 47258673..3d6e196a 100644 Binary files a/spec/fixtures/themes/default.zip and b/spec/fixtures/themes/default.zip differ