From d667d64c78f43cc51fd51cf6695d78ef4beb90f1 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 13 Feb 2013 13:02:37 +0100 Subject: [PATCH] Fix skipfields use with SHP output format. Closes #81 --- NEWS.md | 1 + app/controllers/app.js | 2 +- test/acceptance/export/shapefile.js | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 7ee5eb77..8b212f0d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ 1.3.5 (DD/MM/YY) ----- +* Fix skipfields use with SHP output format (#81) 1.3.4 (21/01/13) ----- diff --git a/app/controllers/app.js b/app/controllers/app.js index 821f17a8..d307d95e 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -250,7 +250,7 @@ function handleQuery(req, res) { function packageResults(err, result){ if (err) throw err; - if ( skipfields.length ){ + if ( result && skipfields.length ){ for ( var i=0; i