Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029373Openbravo ERPA. Platformpublic2015-03-23 13:362015-05-07 22:16
caristu 
caristu 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q33.0PR15Q3 
alostale
Core
No
0029373: Field values can be overwritten by property field values in form view under some circumnstances
Field values can be overwritten by property field values when the property field points to a property of the entity referenced in the tab.
1) Install the "com.openbravo.support.test" module with the last changes in the repository of the module (tag Issue29373)
2) Go to the Price List window. Navigate to any record, for example "Be Soft Drinker Price List"
3) Navigate to the Price List Version tab. Notice that in grid view the name of the price list version is "Be Soft Drinker Price List"
4) Open the record in form view, notice that the name now appears empty. It is being overwritten by the property field value (which points to the base price list version name)
Use a similar approach like in [1] in the "setRequestContextParameter" method of the FormInitializationComponent in order to prevent the override of the original value.

There also exists a workaround which consist of giving to the property field a sequence number lower than the field sequence number

[1] https://code.openbravo.com/erp/devel/pi/rev/407f2d03251e91488d2a096482ef6d27a7eb6105 [^]
No tags attached.
related to feature request 0026763 closed gorkaion Ability to launch reports from process definitions 
related to defect 0025630 closed AugustoMauch Reference list not retrieved correctly if there exists a property field in the window with a particular name 
Issue History
2015-03-23 13:36caristuNew Issue
2015-03-23 13:36caristuAssigned To => platform
2015-03-23 13:36caristuModules => Core
2015-03-23 13:36caristuTriggers an Emergency Pack => No
2015-03-23 13:37hgbotCheckin
2015-03-23 13:37hgbotNote Added: 0075861
2015-03-23 13:37jonalegriaesarteResolution time => 1429740000
2015-03-23 13:38caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8065#r8065
2015-03-23 13:38caristuIssue Monitored: networkb
2015-03-23 13:38caristuNote View State: private: 75861
2015-03-23 13:38caristuNote Deleted: 0075861
2015-03-23 13:56hgbotCheckin
2015-03-23 13:56hgbotNote Added: 0075866
2015-03-23 13:56hgbotCheckin
2015-03-23 13:56hgbotNote Added: 0075867
2015-03-23 13:56hgbotCheckin
2015-03-23 13:56hgbotNote Added: 0075868
2015-03-23 13:56caristuNote Deleted: 0075866
2015-03-23 13:57caristuNote Deleted: 0075867
2015-03-23 13:57caristuNote Deleted: 0075868
2015-03-26 15:26alostaleRelationship addedrelated to 0026763
2015-03-30 08:42alostaleStatusnew => acknowledged
2015-04-17 08:16alostaleStatusacknowledged => scheduled
2015-04-17 08:16alostaleAssigned Toplatform => caristu
2015-04-17 13:46caristuIssue Monitored: alostale
2015-04-17 13:47caristuAssigned Tocaristu => alostale
2015-04-17 13:49hgbotCheckin
2015-04-17 13:49hgbotNote Added: 0076607
2015-04-17 13:49hgbotStatusscheduled => resolved
2015-04-17 13:49hgbotResolutionopen => fixed
2015-04-17 13:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bdd9223578a2fd2db570735e42fd7202760a7ee4 [^]
2015-04-17 13:52caristuAssigned Toalostale => caristu
2015-04-17 13:52caristuReview Assigned To => alostale
2015-04-27 08:42alostaleRelationship addedrelated to 0025630
2015-04-27 08:42alostaleNote Added: 0076767
2015-04-27 08:42alostaleStatusresolved => closed
2015-04-27 08:42alostaleFixed in Version => 3.0PR15Q3
2015-05-07 22:16hudsonbotCheckin
2015-05-07 22:16hudsonbotNote Added: 0077135

Notes
(0076607)
hgbot   
2015-04-17 13:49   
Repository: erp/devel/pi
Changeset: bdd9223578a2fd2db570735e42fd7202760a7ee4
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Apr 17 11:10:36 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bdd9223578a2fd2db570735e42fd7202760a7ee4 [^]

fixes issue 29373: Property fields can overwrite values in request of the FIC

The FIC could overwrite the values of some fields having a property field in the same tab referencing a column with the same name.
To solve this problem now the setRequestContextParameter() stores in the request de correct name for the parameter related to the property field

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0076767)
alostale   
2015-04-27 08:42   
code reviewed + tested
(0077135)
hudsonbot   
2015-05-07 22:16   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/a1817f84bd8b [^]
Maturity status: Test