diff --git a/src/features/exporter/js/exporter.js b/src/features/exporter/js/exporter.js index f9ef44d85f..a7341b0eb1 100755 --- a/src/features/exporter/js/exporter.js +++ b/src/features/exporter/js/exporter.js @@ -666,8 +666,8 @@ loadAllDataIfNeeded: function (grid, rowTypes, colTypes) { if ( rowTypes === uiGridExporterConstants.ALL && grid.rows.length !== grid.options.totalItems && grid.options.exporterAllDataFn) { return grid.options.exporterAllDataFn() - .then(function() { - grid.modifyRows(grid.options.data); + .then(function(allData) { + grid.modifyRows(allData); }); } else { var deferred = $q.defer();