From 14900f3c727fce2dbb414e1b948aec63e3fae2d3 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Fri, 10 Feb 2017 12:55:04 +0100 Subject: [PATCH] Fix description of objects in GPX export (fixes #50) - Values were missing from description - If there is only the default field (Description), it is not prefixed by "Description: " --- server/gpx.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/gpx.js b/server/gpx.js index 730e579d..df6e7930 100644 --- a/server/gpx.js +++ b/server/gpx.js @@ -3,9 +3,12 @@ var utils = require("./utils"); var _e = utils.escapeXml; function _dataToText(fields, data) { + if(fields.length == 1 && fields[0].name == "Description") + return data["Description"] || ""; + var text = [ ]; for(var i=0; i