From c81bf2fb28049cf54a866ae822461fd9afc08545 Mon Sep 17 00:00:00 2001 From: Divesh Date: Mon, 20 Jan 2020 17:05:29 +0100 Subject: [PATCH] Fix csv export - download issue #65 --- src/Resources/public/js/searchConfig/resultPanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Resources/public/js/searchConfig/resultPanel.js b/src/Resources/public/js/searchConfig/resultPanel.js index 261e407..18e564e 100644 --- a/src/Resources/public/js/searchConfig/resultPanel.js +++ b/src/Resources/public/js/searchConfig/resultPanel.js @@ -494,7 +494,9 @@ pimcore.bundle.advancedObjectSearch.searchConfig.resultPanel = Class.create(pimc var fieldKeys = Object.keys(fields); if (rdata.success && rdata.jobs) { - this.exportProcess(rdata.jobs, rdata.fileHandle, fieldKeys, true); + var exportType = {}; + exportType.downloadUrl = "/admin/object-helper/download-csv-file"; + this.exportProcess(rdata.jobs, rdata.fileHandle, fieldKeys, true, {}, exportType); } }.bind(this)