Skip to content

Commit

Permalink
commit progress update #1659
Browse files Browse the repository at this point in the history
  • Loading branch information
salomon-j committed Jan 22, 2025
1 parent 4ddc279 commit b46ac0d
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1882,13 +1882,8 @@ class BioActivityController {
} else if (projectService.isUserAdminForProject(userId, projectId) || activityService.isUserOwnerForActivity(userId, activity?.activityId)) {
model = [activity: activity]
if (includeSiteData) {
model.site = siteService.get(activity.siteId).collect {
[
siteId: it.siteId,
name : it.name,
geoJson: it.geoIndex
]
}
def activitySite = siteService.get(model.activity.siteId, [view: 'brief'])
model.site = [siteId: activitySite.siteId, name:activitySite.name, geoJson:activitySite.geoIndex]
}

} else {
Expand Down

0 comments on commit b46ac0d

Please sign in to comment.