File tree 2 files changed +9
-6
lines changed
controllers/au/org/ala/biocollect
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -247,8 +247,10 @@ class BioActivityController {
247
247
model. autocompleteUrl = " ${ request.contextPath} /search/searchSpecies/${ pActivity.projectActivityId} ?limit=10"
248
248
addOutputModel(model)
249
249
addDefaultSpecies(activity)
250
- // Remove projectSite from the survey site list
251
- model?. projectSite && model. pActivity?. excludeProjectSite ? model. pActivity. sites?. remove(model. projectSite) : null
250
+ if (model?. projectSite && model. pActivity?. excludeProjectSite) {
251
+ // Remove projectSite from the survey site list
252
+ model. pActivity. sites?. remove(model. projectSite)
253
+ }
252
254
}
253
255
254
256
if (mobile && flash. message) {
@@ -278,9 +280,10 @@ class BioActivityController {
278
280
model. id = id
279
281
model. speciesConfig = [surveyConfig : [speciesFields : pActivity?. speciesFields]]
280
282
model. returnTo = params. returnTo ? params. returnTo : g. createLink(controller : ' bioActivity' , action : ' index' ) + " /" + id
281
- // Remove projectSite from the survey site list
282
- model?. projectSite && model. pActivity?. excludeProjectSite ? model. pActivity. sites?. remove(model. projectSite) : null
283
-
283
+ if (model?. projectSite && model. pActivity?. excludeProjectSite) {
284
+ // Remove projectSite from the survey site list
285
+ model. pActivity. sites?. remove(model. projectSite)
286
+ }
284
287
} else {
285
288
flash. message = " Access denied: User is not an owner of this activity ${ activity?.activityId} "
286
289
if (! mobile) redirect(controller : ' project' , action : ' index' , id : projectId)
Original file line number Diff line number Diff line change 378
378
</span >
379
379
380
380
<span data-bind =" visible: transients.totalPoints() > 0 && !transients.loadingMap() " >
381
- <m:map height =" 650px " width =" auto" id =" recordOrActivityMap" />
381
+ <m:map height =" 800px " width =" auto" id =" recordOrActivityMap" />
382
382
</span >
383
383
384
384
</div >
You can’t perform that action at this time.
0 commit comments