partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit ddc47b03a64b9365f7acd1c541152bd01e5a6db6
parent 4cf9190ff2a6c5294a2eb5f2f9551c3b15935617
Author: Timo A. Hummel <felicitus@felicitus.org>
Date:   Fri, 22 Apr 2016 17:12:02 +0200

Merge pull request #649 from partkeepr/PartKeepr-646

Pass the selected format to the accept headers, fixes #646
Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Exporter/GridExporter.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Exporter/GridExporter.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Exporter/GridExporter.js @@ -62,7 +62,7 @@ Ext.define("PartKeepr.Exporter.GridExporter", { headers: {} }; - options.headers["Accept"] = "text/comma-separated-values"; + options.headers["Accept"] = this.format; options.jsonData = rows; options.method = "POST"; //this.down("#formatSelector").getValue().get("mimetype");