Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013136 | Openbravo ERP | A. Platform | public | 2010-04-27 15:01 | 2010-05-15 00:00 |
|
Reporter | shuehner | |
Assigned To | mtaal | |
Priority | urgent | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | pi | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0013136: OBContext.getLanguage does only use users' default language, and does not honor language change in the role change popup |
Description | the OBContext code for getLanguage does only read the language from the users default language setting.
However imo it should use the currently active ui language used by the user (which can be changed for this session in the role switch popup).
|
Steps To Reproduce | |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0020191 | 3.0MP12 | closed | alostale | OBContext.getLanguage does only use users' default language, in java process |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-04-27 15:01 | shuehner | New Issue | |
2010-04-27 15:01 | shuehner | Assigned To | => mtaal |
2010-04-27 15:01 | shuehner | OBNetwork customer | => No |
2010-04-27 15:16 | shuehner | Note Added: 0026723 | |
2010-04-27 22:32 | hgbot | Checkin | |
2010-04-27 22:32 | hgbot | Note Added: 0026735 | |
2010-04-27 22:32 | hgbot | Status | new => resolved |
2010-04-27 22:32 | hgbot | Resolution | open => fixed |
2010-04-27 22:32 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d61ce2cd289253212f817a70cc3eb57e103efbce [^] |
2010-05-14 12:20 | shuehner | Note Added: 0027237 | |
2010-05-14 12:20 | shuehner | Status | resolved => closed |
2010-05-14 12:20 | shuehner | Fixed in Version | => pi |
2010-05-14 15:28 | hudsonbot | Checkin | |
2010-05-14 15:28 | hudsonbot | Note Added: 0027305 | |
2010-05-15 00:00 | anonymous | sf_bug_id | 0 => 3001857 |
2012-04-03 08:57 | VictorVillar | Relationship added | related to 0020191 |
Notes |
|
|
When doing this change, please add javadoc to getLanguage method, explaining what value the method returns (i.e. currently selected ui language) |
|
|
(0026735)
|
hgbot
|
2010-04-27 22:32
|
|
Repository: erp/devel/pi
Changeset: d61ce2cd289253212f817a70cc3eb57e103efbce
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Apr 27 22:32:28 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d61ce2cd289253212f817a70cc3eb57e103efbce [^]
fixes issue 13135: OBContext.getLanguage() returns 'wrong' language, if user does not have a default language set
fixes issue 13136: OBContext.getLanguage does only use users' default language, and does not honor language change in the role change popup
---
M src-test/org/openbravo/test/dal/IssuesTest.java
M src/org/openbravo/base/secureApp/LoginUtils.java
M src/org/openbravo/dal/core/OBContext.java
---
|
|
|
|
Tested in pi/pgsql, rev: da4cfb0dabc7. Code-change reviewed, now using language from Sesson set on login & role-switches first, then falls back to user default-language or system-client-default language. Tested using 'Audit Trail' popup as its translation of labels inside the grid is using the ObContext.getLanguage to retrieve the language to use. -> Working fine as the labels in the rows of that popup now change their translation properly if the ui language is changed by using the 'role switch popup' |
|
|
|
|