AtlasOfLivingAustralia / biocache-hubs

Biocache Hub UI grails plugin
Other
3 stars 30 forks source link

bugfix/flagging issue #567

Closed brucehyslop closed 1 year ago

brucehyslop commented 1 year ago

changed the isUnderCas variable to isUnderAuth and configure based on either CAS or OIDC being enabled.

The flag item bug was caused by the isUnderCas JS property being set from a string without surrounding quote characters. This resulted in an invalid JS object which caused functions in show.js fail to register jQuery handlers to process the "flag item" submit event. https://github.com/AtlasOfLivingAustralia/biocache-hubs/blob/224c40b1a6035a4b44b276f2bcf090643a2d8157/grails-app/views/occurrence/show.gsp#L56

updated extragrailsApplication.config.getProperty() method

sughics commented 1 year ago

Above issue resolved here: https://github.com/AtlasOfLivingAustralia/biocache-service/pull/800