Skip to content

Commit e65544a

Browse files
committed
Merge branch 'master' into 2.5.x
2 parents b959339 + 5f6e8fb commit e65544a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

saiku-bi-platform-plugin/src/main/plugin/lib/saiku.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
saiku.olap.nonempty = true
55
saiku.web.export.csv.name = saiku-export
66
saiku.web.export.excel.name = saiku-export
7+
saiku.web.export.excel.format = xlsx
78

89
saiku.web.export.excel.numberformat=#,##0.00
910

saiku-core/saiku-web/src/main/java/org/saiku/web/rest/resources/QueryResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ public Response getQueryExcelExport(
305305
}
306306
try {
307307
byte[] doc = olapQueryService.getExport(queryName,"xls",format);
308-
String name = SaikuProperties.webExportExcelName;
308+
String name = SaikuProperties.webExportExcelName + "." + SaikuProperties.webExportExcelFormat;
309309
return Response.ok(doc, MediaType.APPLICATION_OCTET_STREAM).header(
310310
"content-disposition",
311-
"attachment; filename = " + name + ".xls").header(
311+
"attachment; filename = " + name).header(
312312
"content-length",doc.length).build();
313313
}
314314
catch (Exception e) {

saiku-webapp/src/main/webapp/WEB-INF/classes/saiku.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
saiku.olap.nonempty = true
55
saiku.web.export.csv.name = saiku-export
66
saiku.web.export.excel.name = saiku-export
7+
saiku.web.export.excel.format = xlsx
78
saiku.web.export.excel.numberformat=#,##0.00
89

910
saiku.format.numberformat=#,##0.00

0 commit comments

Comments
 (0)