Skip to content

Commit

Permalink
Add submission information
Browse files Browse the repository at this point in the history
  • Loading branch information
aks30 committed Feb 25, 2022
1 parent c5bae1e commit efb2558
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion module/userProjects/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,14 @@ module.exports = class UserProjectsHelper {

data["submissionStatus"] = CONSTANTS.common.STARTED;

let submissionDetails = currentTask.observationInformation ? currentTask.observationInformation : {};
// For 4.7 Urgent fix, need to check why observationInformation is not present at task level.
let submissionDetails = {};
if(currentTask.observationInformation) {
submissionDetails = currentTask.observationInformation
} else if (currentTask.submissionDetails) {
submissionDetails = currentTask.submissionDetails
}

data["submissionDetails"] = submissionDetails;

if ( currentTask.submissions && currentTask.submissions.length > 0 ) {
Expand Down

0 comments on commit efb2558

Please sign in to comment.