Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034647Openbravo ERPA. Platformpublic2016-11-28 12:382016-12-16 18:39
JONHM 
caristu 
highminoralways
closedfixed 
5
 
3.0PR17Q1 
alostale
Core
No
0034647: Header not exported to CSV when coming from a HQL table
Header not exported to CSV when coming from a HQL table. It could happen because the "Entity" Object not exists.
1) Open [Product] window and select "Cerveza Ale 0,5L" product
2) Change to "Costing" subtab and select a record which have an "Average Cost transaction", then open the "Average Cost Transactions" subtab
3) Select the new record on the second level subtab and click button "Export to CSV" in the toolbar.
--> The file is exported without the header names
No tags attached.
diff issue34647.diff (3,609) 2016-12-05 17:22
https://issues.openbravo.com/file_download.php?file_id=10160&type=bug
Issue History
2016-11-28 12:38JONHMNew Issue
2016-11-28 12:38JONHMAssigned To => platform
2016-11-28 12:38JONHMModules => Core
2016-11-28 12:38JONHMTriggers an Emergency Pack => No
2016-12-01 12:17alostaleStatusnew => acknowledged
2016-12-01 14:03alostalePrioritynormal => high
2016-12-05 17:21caristuAssigned Toplatform => caristu
2016-12-05 17:22caristuFile Added: issue34647.diff
2016-12-12 09:39hgbotCheckin
2016-12-12 09:39hgbotNote Added: 0092271
2016-12-12 09:39hgbotStatusacknowledged => resolved
2016-12-12 09:39hgbotResolutionopen => fixed
2016-12-12 09:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6966b7f994766544c70658814074b01b292a1a34 [^]
2016-12-12 09:41caristuNote Added: 0092272
2016-12-12 09:41caristuReview Assigned To => alostale
2016-12-12 09:42caristuNote Edited: 0092272bug_revision_view_page.php?bugnote_id=0092272#r13972
2016-12-13 11:12alostaleNote Added: 0092306
2016-12-13 11:12alostaleStatusresolved => closed
2016-12-13 11:12alostaleFixed in Version => 3.0PR17Q1
2016-12-16 18:39hudsonbotCheckin
2016-12-16 18:39hudsonbotNote Added: 0092697

Notes
(0092271)
hgbot   
2016-12-12 09:39   
Repository: erp/devel/pi
Changeset: 6966b7f994766544c70658814074b01b292a1a34
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Dec 12 09:37:28 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6966b7f994766544c70658814074b01b292a1a34 [^]

fixes issue 34647: Header not exported to CSV when coming from a HQL table

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
---
(0092272)
caristu   
2016-12-12 09:41   
(edited on: 2016-12-12 09:42)
The entity of the HQL based table was not being found using getDataSource(request).getEntity()

To solve the problem in these cases, the entity of the HQL table is retrieved from the tab, using the information (tab id) received from the request.

(0092306)
alostale   
2016-12-13 11:12   
code reviewed

tested for hql tables and standard ones
(0092697)
hudsonbot   
2016-12-16 18:39   
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/dc8bf00badd0 [^]
Maturity status: Test