Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026980Openbravo ERPA. Platformpublic2014-06-30 20:032014-08-08 18:52
jecharri 
alostale 
immediateminoralways
closedfixed 
5
pi 
3.0PR14Q4 
shankarb
Google Chrome
Core
No
0026980: When you export to excel window organization the order is not the same
When you export to excel window organization the order is not the same
-go to window "organization"
-order by organization type

If you export to excel the order is not the same.

Another problem:
-select and organization and change to tree view
-if you export, the order is not the same in the excel file
No tags attached.
related to defect 00269963.0PR14Q4 closed inigosanchez Disable export to CSV in tree view 
? fix-26980.export (1,762) 2014-07-02 11:34
https://issues.openbravo.com/file_download.php?file_id=7032&type=bug
Issue History
2014-06-30 20:03jecharriNew Issue
2014-06-30 20:03jecharriAssigned To => AugustoMauch
2014-06-30 20:03jecharriWeb browser => Google Chrome
2014-06-30 20:03jecharriModules => Core
2014-06-30 20:03jecharriResolution time => 1404424800
2014-06-30 20:03jecharriTriggers an Emergency Pack => No
2014-07-02 11:06alostaleNote Added: 0068500
2014-07-02 11:19alostaleRelationship addedrelated to 0026996
2014-07-02 11:34alostaleNote Added: 0068503
2014-07-02 11:34alostaleFile Added: fix-26980.export
2014-07-02 11:34alostaleNote Added: 0068504
2014-07-02 11:35alostaleAssigned ToAugustoMauch => alostale
2014-07-03 08:28alostaleReview Assigned To => shankarb
2014-07-03 08:28alostaleWeb browserGoogle Chrome => Google Chrome
2014-07-03 08:30hgbotCheckin
2014-07-03 08:30hgbotNote Added: 0068524
2014-07-03 08:30hgbotStatusnew => resolved
2014-07-03 08:30hgbotResolutionopen => fixed
2014-07-03 08:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3948973fcaaf5c000bd347921c5d353486ac8eb4 [^]
2014-07-14 11:01shankarbNote Added: 0068610
2014-07-14 11:01shankarbStatusresolved => closed
2014-07-14 11:01shankarbFixed in Version => PR14Q4
2014-08-08 18:52hudsonbotCheckin
2014-08-08 18:52hudsonbotNote Added: 0069130

Notes
(0068500)
alostale   
2014-07-02 11:06   
This issue happens when toggling sorting in a non primitive (FK) property.

So if grid is opened and filtered by another field (i.e. Name), then ascending by Org Type and exported it works fine. If afterwards Org Type is ordered descendingly it fails.
(0068503)
alostale   
2014-07-02 11:34   
This issue has been split in two:
-Current one for csv ordering
-0026996 for exporting in tree view
(0068504)
alostale   
2014-07-02 11:34   
attached fix as currently pi is frozen during release process
(0068524)
hgbot   
2014-07-03 08:30   
Repository: erp/devel/pi
Changeset: 3948973fcaaf5c000bd347921c5d353486ac8eb4
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jul 02 11:33:10 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3948973fcaaf5c000bd347921c5d353486ac8eb4 [^]

fixed bug 26980: order is not kept when exporting to csv

  When toggling sorting (asc-desc) in a FK property and grid is exported to csv,
  sorting is not preserved.

  The problem is caused by SC's ListGrid.getSortField which is returning null in
  this situation. This fix prevents using this function using getSort which works
  correctly.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
(0068610)
shankarb   
2014-07-14 11:01   
Code reviewed and verified in pi changeset 022f33b5b771.
(0069130)
hudsonbot   
2014-08-08 18:52   
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/4450016dee64 [^]
Maturity status: Test