Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002992Openbravo ERPA. Platformpublic2008-06-06 10:182008-11-26 13:21
user71 
alostale 
normalminoralways
closedfixed 
5
 
2.40pi 
Core
No
0002992: dont work correctly to apply format output in xml file
In xml file, if a field has format output, this format is applied to all fields with this column of sql.

In next xml file sample:
...
 <field id="fieldLine1">col1</field>
 <field id="fieldLine2" format="euroEdition">col1</field>
...
EuroEdition format is applied to fieldLine1 and fieldLine2
No tags attached.
Issue History
2008-06-13 18:20cromeroStatusnew => scheduled
2008-06-13 19:59cromeroTarget Version => 2.40
2008-06-18 13:48alostaleNote Added: 0007831
2008-06-18 13:51svnbotCheckin
2008-06-18 13:51svnbotNote Added: 0007832
2008-06-18 13:51svnbotStatusscheduled => resolved
2008-06-18 13:51svnbotResolutionopen => fixed
2008-06-18 13:51svnbotsvn_revision => 5145
2008-11-26 13:21psarobeRegression testing => No
2008-11-26 13:21psarobeStatusresolved => closed

Notes
(0006581)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1986146 [^]
(0007831)
alostale   
2008-06-18 13:48   
The problem is when XmlEngine adds the new field, in case the name already exists the returned object is the previous one overwriting its formats.

This is going to be removed. Why was this done?
(0007832)
svnbot   
2008-06-18 13:51   
Repository: openbravo
Revision: 5145
Author: alostale
Date: 2008-06-18 13:50:59 +0200 (Wed, 18 Jun 2008)

fixed bug 0002992: when a xml file has more than one field pointing to the same column in a structure, the same format is applied to all of them

---
U trunk/src-core/src/org/openbravo/xmlEngine/DataTemplate.java
---

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