Skip to content

Commit ec6faf4

Browse files
committed
Add sustitutions to title in filename for CSV export
1 parent 2e535a6 commit ec6faf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/ng-grid/ng-grid-csv-export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ngGridCsvExportPlugin(opts) {
2222
}
2323

2424
self.createCSV = function () {
25-
downloadFile(self.scope.reportSchema.title + '.csv','data:text/csv;charset=UTF-8,' + encodeURIComponent(self.prepareCSV()));
25+
downloadFile(self.scope.titleWithSubstitutions + '.csv','data:text/csv;charset=UTF-8,' + encodeURIComponent(self.prepareCSV()));
2626
};
2727

2828
self.prepareCSV = function () {

0 commit comments

Comments
 (0)