forked from saurabh/orbit4-5
import modified
This commit is contained in:
parent
4415093ce2
commit
b11299a667
|
@ -156,7 +156,7 @@ class Admin::ImportController < OrbitAdminController
|
||||||
|
|
||||||
@site_valid_locales.each do |locale|
|
@site_valid_locales.each do |locale|
|
||||||
locale = locale.to_s
|
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['Content'][locale] = news['Summary'][locale]
|
||||||
news['Summary'][locale] = " "
|
news['Summary'][locale] = " "
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue