Skip to content

Commit 29e9f90

Browse files
committed
Merge branch 'hotfix/5.0.3'
2 parents a0f72b7 + 610f25c commit 29e9f90

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
id 'war'
1818
}
1919

20-
version "5.0.2"
20+
version "5.0.3"
2121
group "au.org.ala"
2222

2323
apply plugin:"eclipse"

grails-app/services/au/org/ala/biocollect/merit/SettingService.groovy

+1-7
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,11 @@ class SettingService {
4444
def loadHubConfig(hub) {
4545

4646
if (!hub) {
47-
// assign hub using the logic
48-
// 1. Use previous hub from cookie.
49-
// 2. Otherwise, use default hub setting.
47+
hub = grailsApplication.config.app.default.hub?:'default'
5048
String previousHub = cookieService.getCookie(LAST_ACCESSED_HUB)
5149
if (!previousHub) {
52-
hub = grailsApplication.config.app.default.hub?:'default'
5350
cookieService.setCookie(LAST_ACCESSED_HUB, hub, -1 /* -1 means the cookie expires when the browser is closed */)
5451
}
55-
else {
56-
hub = previousHub
57-
}
5852
}
5953
else {
6054
// Hub value in multiple places like url path and in parameter causes Array to be passed instead of String.

0 commit comments

Comments
 (0)