related to bug 24735: characteristics filter not working in product selector
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 11 Sep 2013 09:02:44 +0200
changeset 21108 20a10750ce14
parent 21107 7eada4720c21
child 21109 28e99892996e
related to bug 24735: characteristics filter not working in product selector

Properly set operator type in OBCharacteristicsFilterItem, so DynamicForm.shouldApplyCriterionToItem
method is able correctly evaluate whether the criterion is managed by that item. If operator type
is default (iContains), shouldApplyCriterionToItem cannot properly determine the item managing the
criterion, resulting in some cases it to be stored in _extraAdvancedCriteria to be preserved as a
non directly editable filter, appending in this way new criterions to previous one.
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	Tue Sep 10 11:36:05 2013 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js	Wed Sep 11 09:02:44 2013 +0200
@@ -379,6 +379,7 @@
 });
 
 isc.OBCharacteristicsFilterItem.addProperties({
+  operator: 'exists',
   canEdit: false,
   disableIconsOnReadOnly: false,
   defaultHqlExists: 'exists (from ProductCharacteristicValue v where e = v.product and v.characteristicValue.id in ($value))',