Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050346Openbravo ERPA. Platformpublic2022-09-26 18:212022-09-26 18:30
caristu 
Triage Platform Base 
highminorhave not tried
newopen 
5
 
 
Core
No
0050346: Filter text of some fields may be deleted after refresh depending on the position of the field in the grid
Filter text of some fields may be deleted after refresh depending on the position of the field in the grid
1) Go to the Product window
2) Select a couple of values of the Product Category field to filter by them
3) Refresh the grid, the filter text of the Product Category field correctly remains
4) Clear the filter
5) Drag and drop the Product Category field at the last position of the grid
6) Filter again, selecting a couple of values from the filter drop down list
7) Refresh the grid --> ERROR: the filter text of the Product Category field is cleared
The source problem seesm to be in Smartclient DynamicForm.js, in this code:

if (this.shouldApplyCriterionToItem(items[ii], innerCriteria[i])) {
// this.logWarn("applying advanced criterion:" + isc.Comm.serialize(innerCriteria[i]) +
// "to item:" + items[ii]);
                    var itemID = items[ii].getID();
                    if (assigned[itemID] == null) {
                        assigned[itemID] = innerCriteria[i];
                        itemsToClear[itemID] = false;
                    } else {

Seems that when the field is placed at the latest position, another field enters first into the first if, making the content of the correct field being wrongly deleted.
No tags attached.
related to feature request 0049838 closed caristu Relevant product characteristics property fields 
Issue History
2022-09-26 18:21caristuNew Issue
2022-09-26 18:21caristuAssigned To => Triage Platform Base
2022-09-26 18:21caristuModules => Core
2022-09-26 18:21caristuTriggers an Emergency Pack => No
2022-09-26 18:30caristuProposed Solution updated
2022-09-26 18:30caristuProposed Solution updated
2022-09-27 13:03alostaleRelationship addedrelated to 0049838

There are no notes attached to this issue.