small fix

This commit is contained in:
Harry Bomrah 2017-04-13 20:27:07 +08:00
parent 30453d0d8a
commit 69aa07056d
1 changed files with 2 additions and 2 deletions

View File

@ -50,11 +50,11 @@ wb.add_worksheet(name: "Structure") do |sheet|
case col.type
when "text"
site_in_use_locales.sort.each do |locale|
row << column.text_translations[locale.to_s]
row << (column.text_translations[locale.to_s] rescue "")
end
when "editor"
site_in_use_locales.sort.each do |locale|
row << column.content_translations[locale.to_s]
row << (column.content_translations[locale.to_s] rescue "")
end
when "image"
if !column.image.url.nil?