diff --git a/app/views/admin/books/download_excel.xlsx.axlsx b/app/views/admin/books/download_excel.xlsx.axlsx index 02119a6..a4844ff 100644 --- a/app/views/admin/books/download_excel.xlsx.axlsx +++ b/app/views/admin/books/download_excel.xlsx.axlsx @@ -70,7 +70,7 @@ wb = xlsx_package.workbook row << book.year row << book.language - row << book.book_types.map{|bpt| bpt.title}.join(", ") rescue "" + row << book.book_type.title rescue "" row << book.pages row << book.book_author_types.map{|bpt| bpt.title}.join(", ") rescue "" row << book.number_of_authors