Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035431Openbravo ERPA. Platformpublic2017-03-06 10:432022-02-01 08:05
inigosanchez 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0035431: Data in widgets is not sorted properly under some circumstances
Data in widgets are not sorted properly under some circumstances. When the query that generates the data of the widget has not an 'order by' clause the data is not sorted properly.

The problem can be found in updateSortByFields() method in QueryListDataSource class. This method is used to updates the order by clause of the HQL query and it is not managed properly the reported case.
1) Install the "com.openbravo.support.test" module and update to the revision 15 (tag Issue29452).
1.1) Path https://code.openbravo.com/erp/mods/com.openbravo.support.test/ [^]
2) Log in as F&B International Group Admin
3) Add the "All invoices" widget into the workspace
4) Sort Business Partner by clicking in 'Business Partner' column header.
4.1) Note than "No items to show" message is showed.
5) Log out and Log in as System Administrator.
6) Go to Widget window > Select "All Invoices" widget > Go to Query subtab.
7) Add a "order by" clause in query. (e.g. add to the end of the hql query 'order by inv.businessPartner.id desc').
8) Log out and Log in as F&B International Group Admin.
8.1) Note than "All Invoices" widget is sorted properly. (In this case by Business Partner ID)
9) Sort Amount by clicking in 'Amount' column header.
9.1) Note than data is sorted properly.(In this case by Business Partner ID + Amount)
No tags attached.
related to design defect 0029452 acknowledged Triage Platform Base Data appears overlapped in widgets maximized view under some circumstances 
Issue History
2017-03-06 10:43inigosanchezNew Issue
2017-03-06 10:43inigosanchezAssigned To => platform
2017-03-06 10:43inigosanchezModules => Core
2017-03-06 10:43inigosanchezTriggers an Emergency Pack => No
2017-03-07 11:02inigosanchezRelationship addedrelated to 0029452
2017-04-07 09:03alostaleStatusnew => acknowledged
2017-04-07 09:03alostaleSummaryData in widgets are not sorted properly under some circumstances => Data in widgets is not sorted properly under some circumstances
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.