Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025633Openbravo ERPA. Platformpublic2014-02-03 09:202014-02-12 18:29
caristu 
AugustoMauch 
immediateminoralways
closedfixed 
5
pi 
3.0PR14Q2 
dbaz
Core
No
0025633: Grid configuration don't behave correctly on fields that have a filter drop-down
After setting a iStartsWith default filter on a tab, if we use another filter expression on a field that has a filter drop-down and after that we select a record, the filter automatically gets converted to the default filter and the filtered results disappear.
1) As system administrator, go to [Grid Configuration at Window/Tab/Field Level] and configure the header of the [Sales Invoice] window to use the iStartsWith filter as default filter.
2) As group admin role, navigate to the [Sales Invoice] window
3) Use a "contains" filter criteria on the "Organization" field. For example, ~Norte. It works fine.
4) Select one of the filtered records. The results disappear and the filter criteria has been replaced with ^Norte (startsWith)
No tags attached.
Issue History
2014-02-03 09:20caristuNew Issue
2014-02-03 09:20caristuAssigned To => AugustoMauch
2014-02-03 09:20caristuModules => Core
2014-02-03 09:20caristuTriggers an Emergency Pack => No
2014-02-03 09:20caristuIssue Monitored: networkb
2014-02-03 09:20caristuversion => pi
2014-02-03 12:37AugustoMauchIssue Monitored: dbaz
2014-02-03 12:37AugustoMauchReview Assigned To => dbaz
2014-02-03 12:38hgbotCheckin
2014-02-03 12:38hgbotNote Added: 0063856
2014-02-03 12:38hgbotStatusnew => resolved
2014-02-03 12:38hgbotResolutionopen => fixed
2014-02-03 12:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6050757954012956c037f67a27d4fc5f1b1867e8 [^]
2014-02-04 20:29dbazNote Added: 0063904
2014-02-04 20:29dbazStatusresolved => closed
2014-02-04 20:29dbazFixed in Version => 3.0MP32
2014-02-12 18:29hudsonbotCheckin
2014-02-12 18:29hudsonbotNote Added: 0064148

Notes
(0063856)
hgbot   
2014-02-03 12:38   
Repository: erp/devel/pi
Changeset: 6050757954012956c037f67a27d4fc5f1b1867e8
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Feb 03 12:38:14 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6050757954012956c037f67a27d4fc5f1b1867e8 [^]

Fixes issue 25633: Symbol of default operator is not shown

The problem was that even though the operator of the column was iStartsWith this.getOperator() returned iContains. That meant the iContains was considered the
default operator. The default operator symbol is not shown in the filter, that is why the '~' (iContains symbol) was removed after filtering. Then, if the grid
 was filtered again there was no explicit operator, so the operator defined in the grid configuration was used.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
(0063904)
dbaz   
2014-02-04 20:29   
Reviewed @ changeset: 21915 - 5915bbb61611
(0064148)
hudsonbot   
2014-02-12 18:29   
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/d1a5bb862230 [^]
Maturity status: Test