From ce24270948b708dbbf114617c85a360517be42fa Mon Sep 17 00:00:00 2001 From: did Date: Thu, 22 Sep 2011 01:38:23 +0200 Subject: [PATCH] fix issue #193 --- lib/locomotive/import/content_types.rb | 2 +- spec/fixtures/themes/default.zip | Bin 513534 -> 513540 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/import/content_types.rb b/lib/locomotive/import/content_types.rb index 4e5feeb3..f2e17000 100644 --- a/lib/locomotive/import/content_types.rb +++ b/lib/locomotive/import/content_types.rb @@ -210,7 +210,7 @@ module Locomotive end 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 end diff --git a/spec/fixtures/themes/default.zip b/spec/fixtures/themes/default.zip index 8489be3d036a518b6aa1e6b5b6f3894508583ec0..4725867308abe21806a8f3a2ac6a719fbfef0fe1 100644 GIT binary patch delta 6387 zcmb_gc|4U{_kSMe99!We(=j{9aL7F6B}0a8nUm7Z%MlVu8RBiahBUa+bZAF$xw#E* zw^Cg+2$f{!sBnwwP`A;WZf_c>e$Rdm4sv{cf4qDipU?BGz1I4!?_PVYwS7IUp8mVK zq>np=Iuk=b2HBPeBvlpe%--zPPCV~%SquqfF)`vdrQ*N>U5c^v=JU}2rvzqOauRVh zMdIBHJ@4`NxWEvSp22k#CQC;xabDqO$P|Yu;!YvFa$-a@6ot7R;uNqHWkWV>Fg9}W z3-(J`9~bT)Ab}zEdm^t%BsCO$C1JjX?4ddj*MR%$0Tp^z0ZAHPchq$jRadxcc(xQM zawH^Yat5f92=N6Pl^;A1H4z@3x2WBO@VZ3}h4?tk190!>+^F;1B`9X>y@S# zt!jB0;UwYd{k7?G!tI@wc{w%@s)Kq0g8$nVwQT2qa#b!6xdp@)X`VV5L!{m%;t}K; za>!#L;`K?VHj*6#E1cPMuTc!%1cvbc5r$}w$8-*lE+gVb;SADk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