diff --git a/controllers/v1/observationSubmissionsController.js b/controllers/v1/observationSubmissionsController.js index de5ee603..8f2f0919 100644 --- a/controllers/v1/observationSubmissionsController.js +++ b/controllers/v1/observationSubmissionsController.js @@ -237,9 +237,9 @@ module.exports = class ObservationSubmissions extends Abstract { } - if( solutionDocument.referenceFrom === messageConstants.common.PROJECT ) { + if( observationDocument.referenceFrom === messageConstants.common.PROJECT ) { submissionDocument["referenceFrom"] = messageConstants.common.PROJECT; - submissionDocument["project"] = solutionDocument.project; + submissionDocument["project"] = observationDocument.project; } let criteriaId = new Array; diff --git a/controllers/v1/observationsController.js b/controllers/v1/observationsController.js index a093a00d..021c9a35 100644 --- a/controllers/v1/observationsController.js +++ b/controllers/v1/observationsController.js @@ -1187,9 +1187,9 @@ module.exports = class Observations extends Abstract { ) } - if( solutionDocument.referenceFrom === messageConstants.common.PROJECT ) { + if( observationDocument.referenceFrom === messageConstants.common.PROJECT ) { submissionDocument["referenceFrom"] = messageConstants.common.PROJECT; - submissionDocument["project"] = solutionDocument.project; + submissionDocument["project"] = observationDocument.project; } let assessment = {};