changeset 3712:9eab897f66b6

import_soundingresult: form parameter for beamtype to boolean
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 20 Jun 2019 12:44:19 +0200
parents 3d2b8f542d89
children ac168fcf210e
files client/src/components/importconfiguration/types/Soundingresults.vue
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 11:59:36 2019 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 12:44:19 2019 +0200
@@ -314,7 +314,10 @@
         formData.append("depth-reference", this.depthReference);
       if (this.projection) formData.append("epsg", this.projection);
       if (this.beamType)
-        formData.append("single-beam", this.$options.BEAMTYPES.SINGLEBEAM);
+        formData.append(
+          "single-beam",
+          this.beamType === this.$options.BEAMTYPES.SINGLEBEAM
+        );
 
       HTTP.post("/imports/sr", formData, {
         headers: {