Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005092Openbravo ERPA. Platformpublic2008-09-17 18:242008-12-11 13:58
rafaroda 
Hennadzi 
normalminoralways
closedfixed 
20Ubuntu 7.10
pi 
 
Core
No
0005092: Bad usage of advisePopUp
'advisePopUp' method can be used in two ways:

1) advisePopUp(response, Utility.messageBD(this, "strTitle", vars.getLanguage()), Utility.messageBD(this, "strText", vars.getLanguage()))

2) advisePopUp(response, strMessageType, Utility.messageBD(this, "strTitle", vars.getLanguage()), Utility.messageBD(this, "strText", vars.getLanguage()))

In some files there is no translation of 'strTitle' so the title is always displayed in English.
1) Inside /info/AttributeSetInstance.java (2 times):
1.1) advisePopUp(response, "Info", Utility.messageBD(this, "PAttributeNoSelection", vars.getLanguage())); should be advisePopUp(response, "INFO" Utility.messageBD(this, "Info", vars.getLanguage()), Utility.messageBD(this, "PAttributeNoSelection", vars.getLanguage()));

2) Inside /utility/WindowTree.java:
2.1) advisePopUp(response, "Error", Utility.messageBD(this, "AccessTableNoView", vars.getLanguage())) should be advisePopUp(response, "ERROR", Utility.messageBD(this, "Error", vars.getLanguage()), Utility.messageBD(this, "AccessTableNoView", vars.getLanguage()))

3) Inside /ad_process/Register.java (4 times):
3.1) advisePopUp(response, "ERROR", "Registration", message) should be advisePopUp(response, "ERROR", Utility.messageBD(this, "Registration", vars.getLanguage()), message)

4) Inside /ad_process/TestHeartbeat.java:
4.1) (2 times) advisePopUp(response, "ERROR", "Heartbeat", message) should be advisePopUp(response, "ERROR", Utility.messageBD(this, "Heartbeat", vars.getLanguage()), message)
4.2) (4 times) advisePopUp(response, "ERROR", "Heartbeat Configuration", message) should be advisePopUp(response, "ERROR", Utility.messageBD(this, "Heartbeat Configuration", vars.getLanguage()), message)
No tags attached.
blocks defect 0005085 closed Hennadzi Bad usage of advisePopUp 
Issue History
2008-09-17 18:24rafarodaNew Issue
2008-09-17 18:24rafarodaAssigned To => Hennadzi
2008-09-17 18:24rafarodaStatusnew => scheduled
2008-09-18 14:48svnbotCheckin
2008-09-18 14:48svnbotNote Added: 0009083
2008-09-18 14:48svnbotStatusscheduled => resolved
2008-09-18 14:48svnbotResolutionopen => fixed
2008-09-18 14:48svnbotsvn_revision => 7476
2008-12-11 13:58psarobeRegression testing => No
2008-12-11 13:58psarobeStatusresolved => closed

Notes
(0009083)
svnbot   
2008-09-18 14:48   
Repository: openbravo
Revision: 7476
Author: hennadzi
Date: 2008-09-18 14:48:16 +0200 (Thu, 18 Sep 2008)

Fixed bug 0005092: Bad usage of advisePopUp

---
U branches/r2.40/src/org/openbravo/erpCommon/ad_process/Register.java
U branches/r2.40/src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
U branches/r2.40/src/org/openbravo/erpCommon/info/AttributeSetInstance.java
U branches/r2.40/src/org/openbravo/erpCommon/utility/WindowTree.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=7476&sc=1 [^]