diff --git a/app/controllers/admin/import_controller.rb b/app/controllers/admin/import_controller.rb index 4176946..2f963d8 100644 --- a/app/controllers/admin/import_controller.rb +++ b/app/controllers/admin/import_controller.rb @@ -156,7 +156,7 @@ class Admin::ImportController < OrbitAdminController @site_valid_locales.each do |locale| locale = locale.to_s - if (news['Content'][locale].blank? or (news['Content'][locale].gsub(" \;","").blank? rescue true)) and !news['Summary'][locale].blank? + if (news['Content'][locale].blank? or (news['Content'][locale].gsub(" \;","").blank? rescue true)) and news['Summary'] and !news['Summary'][locale].blank? news['Content'][locale] = news['Summary'][locale] news['Summary'][locale] = " " end