Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050431Openbravo ERPA. Platformpublic2022-10-06 11:162022-10-11 08:05
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
PR23Q1 
Core
No
0050431: Non deterministic sorting in product characteristic fields for values with the same sequence number
The sorting of the product characteristic fields is not deterministic when the characteristic values have the same sequence number in the tree.
1) Create a product characteristic field
2) Define two characteristic values for the characteristic field with the same sequence number in the tree
3) Go to the window that contains the field and sort by it. Note that the sorting of the values created in step 2) may not be deterministic as it may appear records with those characteristics mixed and not properly sorted
No tags attached.
related to feature request 0049838 closed caristu Relevant product characteristics property fields 
related to defect 0050459 closed gdagnesses Cannot filter P&E grids by a field in descending criteria 
Issue History
2022-10-06 11:16caristuNew Issue
2022-10-06 11:16caristuAssigned To => caristu
2022-10-06 11:16caristuModules => Core
2022-10-06 11:16caristuTriggers an Emergency Pack => No
2022-10-06 11:16caristuIssue generated from0050430
2022-10-06 11:16caristuRelationship addedrelated to 0049838
2022-10-06 13:38hgbotNote Added: 0141736
2022-10-07 10:14caristuIssue cloned0050446
2022-10-10 08:49caristuRelationship addedrelated to 0050459
2022-10-11 08:05hgbotNote Added: 0141947
2022-10-11 08:05hgbotResolutionopen => fixed
2022-10-11 08:05hgbotStatusnew => closed
2022-10-11 08:05hgbotFixed in Version => PR23Q1
2022-10-11 08:05hgbotNote Added: 0141948

Notes
(0141736)
hgbot   
2022-10-06 13:38   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/727 [^]
(0141947)
hgbot   
2022-10-11 08:05   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/727 [^]
(0141948)
hgbot   
2022-10-11 08:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: f1ea98ee29d6a63a7209ef75382c3fc0116a0aec
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 11-10-2022 06:05:33
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/f1ea98ee29d6a63a7209ef75382c3fc0116a0aec [^]

fixes BUG-50431: non deterministic sort of prod char fields

  Sort product characteristic fields in a deterministic way in case the
characteristic values has the same sequence number for their
corresponding tree nodes.

  Now we are using the name of the characteristic value as the second
sorting criteria when the sorting is done in the backend.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/materialmgmt/RelevantCharacteristicQueryHook.java
M src-test/src/org/openbravo/client/kernel/reference/materialmgmt/RelevantCharacteristicQueryHookTest.java
---