Contact should always have OK state

This commit is contained in:
Vladimir Krylov 2015-11-30 21:34:47 +02:00
parent 0af529e8a8
commit 1a2b6c9044

View file

@ -277,7 +277,7 @@ namespace :import do
x.postalcode.try(:strip), x.postalcode.try(:strip),
x.stateorprovince.try(:strip), x.stateorprovince.try(:strip),
x.country.try(:strip), x.country.try(:strip),
[x.object_state.try(:name)|| Contact::OK] [x.object_state.try(:name), Contact::OK].compact
] ]
if contacts.size % 10000 == 0 if contacts.size % 10000 == 0