diff --git a/src/main/groovy/au/org/ala/merit/command/SaveReportDataCommand.groovy b/src/main/groovy/au/org/ala/merit/command/SaveReportDataCommand.groovy index 063d4833f..57ae52ff2 100644 --- a/src/main/groovy/au/org/ala/merit/command/SaveReportDataCommand.groovy +++ b/src/main/groovy/au/org/ala/merit/command/SaveReportDataCommand.groovy @@ -121,7 +121,10 @@ class SaveReportDataCommand implements Validateable { } // Setting the activityId in the payload is necessary for ecodata to update the activity as well as outputs. activity.activityId = activityId - activity.organisationId = report?.organisationId + + if (report.organisationId) { + activity.organisationId = report.organisationId + } result = activityService.update(activityId, activity)