diff --git a/src/components/Observation.vue b/src/components/Observation.vue index b2799e7fcb4b6b7d8a576629b6ecb4ba49679032..fe4a89896d89c0c8f9b78e70eeb04154daa9f471 100644 --- a/src/components/Observation.vue +++ b/src/components/Observation.vue @@ -588,7 +588,7 @@ else { this.observationForStore.statusTypeId = CommonUtil.CONST_STATUS_PENDING; } - this.observationForStore.isQuantified = this.observation.isQuantified; + this.observationForStore.userId = this.observation.userId; this.observationForStore.geoinfo = JSON.stringify(this.mapGeoinfo); //this.observation.geoinfo; //CommonUtil.logInfo("this.mapGeoinfo=" + this.mapGeoinfo + ". this.observationForStore.geoinfo=" + this.observationForStore.geoinfo); @@ -598,6 +598,7 @@ this.observationForStore.observationHeading = this.observation.observationHeading; this.observationForStore.observationText = this.observation.observationText; this.observationForStore.observationData = JSON.stringify(this.observation.observationData)//'{"number":0,"unit":"Number"}'; //"{\"number\":0,\"unit\":\"Number\"}"; + this.observationForStore.isQuantified = this.observationForStore.observationData.trim().length > 4; // 4 is accounting for quotation marks this.observationForStore.observationIllustrationSet = this.observation.observationIllustrationSet; // Update the record inside the list of observations