Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024750Openbravo ERPA. Platformpublic2013-09-12 11:042013-09-17 19:03
alostale 
alostale 
immediatemajorhave not tried
closedfixed 
5
 
3.0MP283.0MP28 
AugustoMauch
Core
Pre packaging ( pi )
2013-09-11
https://code.openbravo.com/erp/devel/pi/rev/290c9b12a211 [^]
No
0024750: characteristics filter fails in Product window with adaptive filtering
After pushing adaptive filtering capability (https://code.openbravo.com/erp/devel/pi/rev/290c9b12a211 [^]), Product Characteristics filter is not working in Product window.

The problem occurs when the number of products is <= 100, in this case when the Product window is opened, the whole set of data is retrieved in a single page without any criteria.

When SmartClient determines if a criteria is more restrictive to decide if adaptive filtering can be applied, checks data was retrieved without any criteria so as a new one has been added it is always more restrictive without need of checking it for the operator.

In client filtering cannot be used for characteristics because there is no enough information at client side, so whenever this filter changes, a request to backend is required.
Having less than 100 products in database:
- Open Product window
- Filter by product characteristics
  * No filter is applied
  * A javascript error is thrown:
Uncaught TypeError: Object #<Object> has no method 'condition' DataSource.js:19568
isc.DataSource.addMethods.evaluateCriterion DataSource.js:19568
isc.Class.addClassMethods.invokeSuper Class.js:1099
isc.Class.addClassMethods.Super Class.js:944
isc.OBRestDataSource.addProperties.evaluateCriterion 9c70f4b1eb82d9921b4dd68073402d5e.js:3944
booleanOperator
Whenever filter for characteristics is changed, force backed request by removing cached localData
No tags attached.
Issue History
2013-09-12 11:04alostaleNew Issue
2013-09-12 11:04alostaleAssigned To => alostale
2013-09-12 11:04alostaleModules => Core
2013-09-12 11:04alostaleTriggers an Emergency Pack => No
2013-09-12 11:04alostaleRegression level => Pre packaging ( pi )
2013-09-12 11:04alostaleRegression date => 2013-09-11
2013-09-12 11:04alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/290c9b12a211 [^]
2013-09-12 11:05alostaleReview Assigned To => AugustoMauch
2013-09-12 11:09hgbotCheckin
2013-09-12 11:09hgbotNote Added: 0061089
2013-09-12 11:09hgbotStatusnew => resolved
2013-09-12 11:09hgbotResolutionopen => fixed
2013-09-12 11:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c4ab8576a7eed9e9616b4a9c0568fcf91719a3a6 [^]
2013-09-12 18:20AugustoMauchNote Added: 0061115
2013-09-12 18:20AugustoMauchStatusresolved => closed
2013-09-12 18:20AugustoMauchFixed in Version => 3.0MP28
2013-09-17 19:03hudsonbotCheckin
2013-09-17 19:03hudsonbotNote Added: 0061241

Notes
(0061089)
hgbot   
2013-09-12 11:09   
Repository: erp/devel/pi
Changeset: c4ab8576a7eed9e9616b4a9c0568fcf91719a3a6
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Sep 12 11:09:04 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c4ab8576a7eed9e9616b4a9c0568fcf91719a3a6 [^]

fixed bug 24750: characteristics filter fails in Product window

  Forcing backend call whenever filter changes

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
---
(0061115)
AugustoMauch   
2013-09-12 18:20   
Code reviewed and verified in pi@74a1c5d100ae
(0061241)
hudsonbot   
2013-09-17 19:03   
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/1c53d622fc50 [^]

Maturity status: Test