From ae84c3741f2d437b0644dd790e06e94c47ca11a0 Mon Sep 17 00:00:00 2001 From: chrisala <chris.godwin.ala@gmail.com> Date: Wed, 29 Jan 2025 13:35:37 +1100 Subject: [PATCH] Don't include activities in MERI plan reports #3423 --- .../au/org/ala/merit/command/MeriPlanReportCommand.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/groovy/au/org/ala/merit/command/MeriPlanReportCommand.groovy b/src/main/groovy/au/org/ala/merit/command/MeriPlanReportCommand.groovy index 7ce1a4562..3bb1c54c9 100644 --- a/src/main/groovy/au/org/ala/merit/command/MeriPlanReportCommand.groovy +++ b/src/main/groovy/au/org/ala/merit/command/MeriPlanReportCommand.groovy @@ -53,9 +53,6 @@ class MeriPlanReportCommand implements Validateable{ } else { project = projectService.get(id, 'all') - if (project != null){ - project.remove("sites") - } } Map model @@ -64,6 +61,8 @@ class MeriPlanReportCommand implements Validateable{ model = [statusCode: HttpStatus.SC_NOT_FOUND, error:getErrors()] } else { + project.remove("sites") + project.remove('activities') Map config = projectService.getProgramConfiguration(project) project?.referenceDocument = content?.referenceDocument