Notes |
|
(0059066)
|
hgbot
|
2013-05-30 12:10
|
|
Repository: erp/devel/pi
Changeset: 9708bd1d96ebeb17ddf3df927fd3c2da55394e8e
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu May 30 15:37:49 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9708bd1d96ebeb17ddf3df927fd3c2da55394e8e [^]
Fixes Issue 23925: Filter does not work properly when using ^
After forming criteria from current filter, the operator symbols were removed and only the value is retained.
Added the appropriate operator symbol, based on the operator.
Ignored contains case alone as normal values will be replaced with ~value.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
|
|
|
(0059075)
|
hgbot
|
2013-05-30 14:40
|
|
Repository: erp/devel/pi
Changeset: e6e46782e850bb850a9aebf675bb82996ad6267c
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu May 30 18:06:34 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e6e46782e850bb850a9aebf675bb82996ad6267c [^]
Related to Issue 23925 : Jslint changes
added condition to ignore regex criteria while setting symbol and made modifications in code for jslint compliance
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
|
|
|
|
The functionality works, but it needs to be improved in terms of performance:
- No need to retrieve the same least in each iteration
- Once the operator is found it makes no sense to keep iterating the list of operators a break statement should be used.
- It is not even needed to iterate en the list of operators. To search for the operator with operators[operator].ID === criteria[i].operator, instead of iterating on the list of operators you can just do operators[criteria[i].operator]. |
|
|
|
|
|
|
|
|
(0059118)
|
hgbot
|
2013-06-02 15:10
|
|
Repository: erp/devel/pi
Changeset: 83b35f1de4c58884a437b72dd03ead6024e11f66
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Sun Jun 02 18:37:50 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/83b35f1de4c58884a437b72dd03ead6024e11f66 [^]
Fixes Issue 0023925: Filter does not work properly when using ^
Applied code review changes to improves performance.
* Retrived list of operators once before looping instead of fetching it every time in the for loop.
* Instead of running a for loop on the list of operators, performed search based on the criteria operator.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
---
|
|
|
|
Code reviewed and verified in pi@83b35f1de4c583b35f1de4c5 |
|
|
|
|