Openbravo Issue Tracking System - POS2
View Issue Details
0050410POS2Corepublic2022-10-04 17:392022-10-04 17:42
marvintm 
Triage Platform Base 
normalmajorhave not tried
newopen 
5
 
 
No
0050410: Cannot change the language of the application if default role and language are set
It is currently not possible to change the language of the application if the user has a default POS role, and this role has a default POS Language. The application will reload, but the language will not change.
- Set a user with a default POS role in the backoffice
- Set a default POS language for this role in the backoffice
- Log in the POS with this user. Verify that the role and language are the default ones you selected. This is OK.
- Change the language using the Profile menu. Verify that the application reloads, but the language is still the default one. This is not OK.
It seems this code:

https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/src/org/openbravo/pos2/login/POS2LoginUtilsServlet.java#L129 [^]

is enforcing that if the user has a default role and this role has a default language, this language should always be used. I think this is correct in the case the session is new and no language has been specified, but it should not work like this when a different language has been set in the session.
No tags attached.
Issue History
2022-10-04 17:39marvintmNew Issue
2022-10-04 17:39marvintmAssigned To => Triage Platform Base
2022-10-04 17:39marvintmTriggers an Emergency Pack => No
2022-10-04 17:41marvintmProposed Solution updated
2022-10-04 17:42marvintmSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24823#r24823
2022-10-04 17:42marvintmSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24824#r24824

There are no notes attached to this issue.