Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039351Openbravo ERPA. Platformpublic2018-09-25 17:442022-02-01 08:07
kchoperena 
Triage Platform Base 
highmajoralways
acknowledgedopen 
5
 
 
Core
No
0039351: [SERQA 4660]: getSortField function is not taking into account the grid configuration to mark the default sortable column
In Sales Order window of back-end, by default, the sorting is doing in documentNo field. If we configure the grid configuration for this window and the documentNo as not sortable, the window is not taking into account the grid rule to mark the sortable field by default.
See the attached video & images

Configuration: See the attached image

Steps: https://drive.google.com/file/d/1QP6mczOiLLDZea1EwJwB38qkAu50V0ml/view [^]
Modify the getSortField() function of OBViewGridComponent class to take into account the grid configuration.
No tags attached.
png GridConfig.png (95,606) 2018-09-27 16:07
https://issues.openbravo.com/file_download.php?file_id=12192&type=bug
png
Issue History
2018-09-25 17:44kchoperenaNew Issue
2018-09-25 17:44kchoperenaAssigned To => platform
2018-09-25 17:44kchoperenaModules => Core
2018-09-25 17:44kchoperenaResolution time => 1539122400
2018-09-25 17:44kchoperenaTriggers an Emergency Pack => No
2018-09-27 16:07kchoperenaFile Added: GridConfig.png
2018-09-27 16:07kchoperenaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17705#r17705
2018-10-11 19:32caristuAssigned Toplatform => caristu
2018-10-11 19:32caristuStatusnew => scheduled
2018-10-18 11:00caristuRelationship addedrelated to 0039478
2018-10-19 11:49caristuRelationship deletedrelated to 0039478
2018-10-22 13:07caristuNote Added: 0107475
2018-10-22 13:08caristuAssigned Tocaristu => platform
2018-10-22 13:08caristuStatusscheduled => acknowledged
2018-10-22 13:08caristuTypedefect => design defect
2018-10-29 12:08alostaleResolution time1539122400 =>
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

Notes
(0107475)
caristu   
2018-10-22 13:07   
Moved to Design Defect. A proper fix for this issue requires to extract the grid configuration settings from the UIDefinition[1]. They are being wrongly kept in memory at UI Definition level, but this information can be different per each field even if they have the same UI Definition.

[1] https://code.openbravo.com/erp/devel/pi/file/tip/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java [^]