[bugfix] If "featureType" is not present in PUT request, it will be set to "NONE...
authorErik Haider Forsén <erikhf@ifi.uio.no>
Sun, 6 Dec 2015 09:11:43 +0000 (10:11 +0100)
committerErik Haider Forsén <erikhf@ifi.uio.no>
Sun, 6 Dec 2015 09:11:43 +0000 (10:11 +0100)
src/components/sidebar/sidebar.ts

index b681df2..3ee3e1e 100644 (file)
@@ -50,6 +50,7 @@ export class Sidebar {
     address: Control = new Control("");
     email: Control = new Control("");
     phoneNumber: Control = new Control("");
+    featureType: Control = new Control("");
 
 
     constructor(http:Http, fb: FormBuilder) {
@@ -74,7 +75,8 @@ export class Sidebar {
             "contactPerson": this.contactPerson,
             "address": this.address,
             "email": this.email,
-            "phoneNumber": this.phoneNumber
+            "phoneNumber": this.phoneNumber,
+            "featureType": this.featureType
         });
         let instance = this;
         this.lat.valueChanges.observer({