import modified

This commit is contained in:
Harry Bomrah 2014-12-10 19:28:40 +08:00
parent 4415093ce2
commit b11299a667
1 changed files with 1 additions and 1 deletions

View File

@ -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("&nbsp\;","").blank? rescue true)) and !news['Summary'][locale].blank?
if (news['Content'][locale].blank? or (news['Content'][locale].gsub("&nbsp\;","").blank? rescue true)) and news['Summary'] and !news['Summary'][locale].blank?
news['Content'][locale] = news['Summary'][locale]
news['Summary'][locale] = " "
end