From 69aa07056df79f93f4a9a0cf5d1c14c85540ccf6 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 13 Apr 2017 20:27:07 +0800 Subject: [PATCH] small fix --- app/views/utable_export/export.xlsx.axlsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/utable_export/export.xlsx.axlsx b/app/views/utable_export/export.xlsx.axlsx index 4ed5d62..19bbdeb 100644 --- a/app/views/utable_export/export.xlsx.axlsx +++ b/app/views/utable_export/export.xlsx.axlsx @@ -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?