details: https://code.openbravo.com/erp/devel/pi/rev/c4ab8576a7ee
changeset: 21114:c4ab8576a7ee
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Sep 12 11:09:04 2013 +0200
summary: fixed bug 24750: characteristics filter fails in Product window
Forcing backend call whenever filter changes
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
| 11 ++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 3c47d2bbe7b8 -r c4ab8576a7ee
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
Thu Sep 12 10:45:51 2013 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
Thu Sep 12 11:09:04 2013 +0200
@@ -475,6 +475,17 @@
},
filterDialogCallback: function (value) {
+ // Whenever filter is changed, new criteria must force a backend call,
adaptive
+ // filter cannot be used for characteristics as the information to do the
matching
+ // is not present in client. Cache of localData needs to be cleaned up to
force it;
+ // if not, this criteria can be considered to be more restrictive without
even
+ // executing compare criteria method in case the whole page was originally
retrieved
+ // without any criteria.
+ // See issue #24750
+ if (this.grid.parentElement.data) {
+ this.grid.parentElement.data.localData = null;
+ }
+
this.internalValue = value;
this.setElementValue(isc.OBCharacteristicsFilterItem.getDisplayValue(value));
this.form.grid.performAction();
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits