Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015417Openbravo ERPA. Platformpublic2010-09-21 12:382010-12-14 19:30
networkb 
alostale 
highminoralways
closedfixed 
5
2.50MP21 
2.50MP25 
Core
No
0015417: Wrong behaviour when printing messages using OBError, when messages belong to a module whose language is different than English
When developing a new java that prints an error message using OBError, if the module has been defined in Spanish, the message value of the ad_message is shown when loggin in spanish.
It seems that it tries to find a message in spanish on the ad_message_trl, but it has not been created because the module is being developed on spanish.

This error happens in the machine where the module has been development, but if you package it on a module, and install it on a different application the message is correct.
This is because when installing the module a new row for the message is created
on the ad_message_trl table for spanish language but this not happens when developing the module.

-Define a new module in spanish
-Create a message in spanish.
-Create a process that prints the error message using OBError object
-After compile see that the error shown is the value of the ad_message when should be the messagetext.
-Make the ob error to print the message of the ad_message instead of ad_message_trl table, when the message belongs to a module that is defined for a language different than english.

No tags attached.
blocks defect 00146333.0RC4 closed alostale Wrong behaviour when printing messages using OBError, when messages belong to a module whose language is different than English 
Issue History
2010-12-14 11:44alostaleTypedefect => backport
2010-12-14 11:44alostalefix_in_branch => 2.50
2010-12-14 11:47hgbotCheckin
2010-12-14 11:47hgbotNote Added: 0033155
2010-12-14 11:47hgbotStatusscheduled => resolved
2010-12-14 11:47hgbotResolutionopen => fixed
2010-12-14 11:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/730218eef94cd05b00179e041dba04d9fab61631 [^]
2010-12-14 19:30shuehnerNote Added: 0033183
2010-12-14 19:30shuehnerStatusresolved => closed

Notes
(0033155)
hgbot   
2010-12-14 11:47   
Repository: erp/stable/2.50
Changeset: 730218eef94cd05b00179e041dba04d9fab61631
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Dec 14 11:47:25 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/730218eef94cd05b00179e041dba04d9fab61631 [^]

fixed bug 15417: Wrong behaviour when printing messages using OBError

---
M src/org/openbravo/erpCommon/utility/MessageBD_data.xsql
M src/org/openbravo/erpCommon/utility/Utility.java
---
(0033183)
shuehner   
2010-12-14 19:30   
Reviewed & Tested in pi/pgsql (rev: f3e22b5fe784), the method is now working fine reading both base-language & extra-language values in both base-language en_US (like corE) and with a module in another base-language (like de_DE)