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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006038
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 08. Project and service managementmajorhave not tried2008-11-18 19:552009-02-18 15:17
ReporterplujanView Statuspublic 
Assigned Toalostale 
PriorityurgentResolutionfixedFixed in Versionpi
StatusclosedFix in branchFixed in SCM revision12787
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006038: [QA-alpha-r1] Change Status button on projects has no label

DescriptionI create a new Multiphase project. The label for the button used to change project status has no label.
Steps To ReproduceGo to Project and Service > Transactions > Multiphase Project
Click on new. See the button at the bottom of the page (see attach)
TagsNo tags attached.
Attached Filesjpg file icon R250alpha_BUG_NoLabelButton.JPG [^] (93,276 bytes) 2008-11-18 19:55

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0011986)
PavelPonomarev (reporter)
2009-01-08 14:29

WAD issue, reassigned from Hennadzi to Rafa.
(0012094)
rafaroda (developer)
2009-01-10 18:02

Info provided by Paul:

This problem is closely related with the unique logic that is used for field "changeprojectstatus"of the WAD process. Due to that, there is a lack of some code in class MultiphaseProject.java (same as for "ServiceProject.java") to show that label.
For example, the following code could be used in my opinion:
xmlDocument.setParameter("ChangeProjectStatus_BTNname", Utility.getButtonName(this, vars, "803670", "ChangeProjectStatus_linkBTN", usedButtonShortCuts, reservedButtonShortCuts));
some where in method printPageEdit().
Therefore, a parameter should appear in the "MultiphaseProject_Edition.xml" file.

This, in turn, leads us to the class WADButton.java or rather to an adjustment of methods "WADButton.toJava()" and "WADButton.toXml()".

To save stability of code and fix this bug, my proposition is to add some code for this condition :
getData("ColumnName").equalsIgnoreCase("ChangeProjectStatus")
For method WADButton.toJava() the additional code could be:

        if (getData("IsDisplayed").equals("Y") && getData("ColumnName").equalsIgnoreCase("ChangeProjectStatus"))
                    return "xmlDocument.setParameter(\""
                    + getData("ColumnName")
                    + "_BTNname\", Utility.getButtonName(this, vars, \""
                    + getData("AD_Field_ID")
                    + "\", \""
                    + getData("ColumnName")
                    + "_linkBTN\", usedButtonShortCuts, reservedButtonShortCuts));";

For the method WADButton.toXml():

        if (getData("IsDisplayed").equals("Y")
                        && getData("ColumnName").equalsIgnoreCase(
                            "ChangeProjectStatus")) {
                        text.append("<PARAMETER id=\"").append(getData("ColumnName"))
                                .append("_BTNname\" name=\"").append(
                                        getData("ColumnName")).append(
                                        "_BTNname\" default=\"\"/>\n");
                    }
(0013149)
svnbot (reporter)
2009-02-04 16:53

Repository: openbravo
Revision: 12787
Author: alostale
Date: 2009-02-04 16:53:56 +0100 (Wed, 04 Feb 2009)

fixed bug 0006038: [QA-alpha-r1] Change Status button on projects has no label

---
U trunk/src-wad/lib/openbravo-wad.jar
U trunk/src-wad/src/org/openbravo/wad/controls/WADButton.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12787&sc=1 [^]
(0013667)
sureshbabu (reporter)
2009-02-18 15:17

Retested in context 79.125.56.185/openbravotrunk

- Issue History
Date Modified Username Field Change
2008-11-18 19:55 plujan New Issue
2008-11-18 19:55 plujan Assigned To => rafaroda
2008-11-18 19:55 plujan sf_bug_id 0 => 2310712
2008-11-18 19:55 plujan File Added: R250alpha_BUG_NoLabelButton.JPG
2008-11-18 19:55 plujan Regression testing => No
2008-11-18 19:57 plujan Status new => scheduled
2008-11-18 19:57 plujan fix_in_branch => trunk
2008-12-23 12:58 PavelPonomarev Assigned To rafaroda => Hennadzi
2009-01-08 14:29 PavelPonomarev Note Added: 0011986
2009-01-08 14:29 PavelPonomarev Assigned To Hennadzi => PavelPonomarev
2009-01-08 14:30 PavelPonomarev Assigned To PavelPonomarev => rafaroda
2009-01-08 14:30 PavelPonomarev fix_in_branch trunk =>
2009-01-10 18:00 rafaroda Assigned To rafaroda => alostale
2009-01-10 18:02 rafaroda Note Added: 0012094
2009-01-27 15:44 Hennadzi Issue Monitored: Hennadzi
2009-02-04 16:53 svnbot Checkin
2009-02-04 16:53 svnbot Note Added: 0013149
2009-02-04 16:53 svnbot Status scheduled => resolved
2009-02-04 16:53 svnbot Resolution open => fixed
2009-02-04 16:53 svnbot svn_revision => 12787
2009-02-06 09:07 Hennadzi Issue End Monitor: Hennadzi
2009-02-18 15:17 sureshbabu Status resolved => closed
2009-02-18 15:17 sureshbabu Note Added: 0013667
2009-02-18 15:17 sureshbabu Fixed in Version => trunk


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker