Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0015417
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformminoralways2010-09-21 12:382010-12-14 19:30
ReporternetworkbView Statuspublic 
Assigned Toalostale 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branch2.50Fixed in SCM revision730218eef94c
ProjectionnoneETAnoneTarget Version2.50MP25
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.50MP21SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0015417: Wrong behaviour when printing messages using OBError, when messages belong to a module whose language is different than English

DescriptionWhen 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.

Steps To Reproduce-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.
Proposed Solution-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.

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00146333.0RC4 closedalostale Wrong behaviour when printing messages using OBError, when messages belong to a module whose language is different than English 

-  Notes
(0033155)
hgbot (developer)
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 (administrator)
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)

- Issue History
Date Modified Username Field Change
2010-12-14 11:44 alostale Type defect => backport
2010-12-14 11:44 alostale fix_in_branch => 2.50
2010-12-14 11:47 hgbot Checkin
2010-12-14 11:47 hgbot Note Added: 0033155
2010-12-14 11:47 hgbot Status scheduled => resolved
2010-12-14 11:47 hgbot Resolution open => fixed
2010-12-14 11:47 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/730218eef94cd05b00179e041dba04d9fab61631 [^]
2010-12-14 19:30 shuehner Note Added: 0033183
2010-12-14 19:30 shuehner Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker