Skip to content
Snippets Groups Projects
Commit ccf338ee authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix: Storing obs from My places now works

parent ae1831dd
No related branches found
No related tags found
No related merge requests found
......@@ -578,8 +578,8 @@
isRecordAvailable = lstObservations.find(({observationId}) => observationId === this.observation.observationId);
}
this.observationForStore.cropOrganismId = this.crop.cropId;
this.observationForStore.organismId = this.pest.pestId;
this.observationForStore.cropOrganismId = this.observation.cropOrganismId;
this.observationForStore.organismId = this.observation.organismId;
this.observationForStore.timeOfObservation = this.strDateObservation;
this.observationForStore.statusChangedTime = this.strDateObservation;
if (this.observation.statusTypeId) {
......@@ -608,7 +608,6 @@
// Reference to this is lost in here
for (var i = 0; i < lstObservations.length; i++)
//$.each(lstObservations, function(index, jobservation)
{
var jobservation = lstObservations[i];
if (jobservation.observationId === selectedObservationId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment