Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
0.20
Description
This is the code (class Context):
public Locale getLocale() {
Locale locale = (Locale) getSessionAttribute(LOCALE);
if (locale == null && clickService.getLocale() != null)
{ locale = clickService.getLocale(); }else
{ locale = getRequest().getLocale(); } return locale;
}
The value from the session will never be selected. It should be:
public Locale getLocale() {
Locale locale = (Locale) getSessionAttribute(LOCALE);
if (locale == null) {
if (clickService.getLocale() != null)
else
{ locale = getRequest().getLocale(); }}
return locale;
}