From a9881e283801e8e017b43ded6b032404ae6c8f1c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 6 Jun 2016 17:16:39 +0800 Subject: [PATCH] type fixed for xls --- app/views/admin/projects/download_excel.xlsx.axlsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/projects/download_excel.xlsx.axlsx b/app/views/admin/projects/download_excel.xlsx.axlsx index 8af1d58..434100b 100644 --- a/app/views/admin/projects/download_excel.xlsx.axlsx +++ b/app/views/admin/projects/download_excel.xlsx.axlsx @@ -62,7 +62,7 @@ wb = xlsx_package.workbook row << proj.year row << proj.language - row << (proj.project_types.map{|jl| jl.title}.join(", ") rescue "") + row << (proj.project_type.title rescue "") row << proj.start_date.strftime("%Y-%m-%d") rescue "" row << proj.end_date.strftime("%Y-%m-%d") rescue "" row << proj.url