Fixes issue 21697: Reapplies code that had been backed out
authorAugusto Mauch <augusto.mauch@openbravo.com>
Tue, 09 Oct 2012 13:41:46 +0200
changeset 18175 f2ec6da4445f
parent 18174 52411effe111
child 18176 4c91b7f6a04f
Fixes issue 21697: Reapplies code that had been backed out

On October 1st the two changesets that fixed the issue were backed out, but then only the one related to the date column filter was reapplied, and not the one related to the numeric fields.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js	Tue Oct 09 13:29:28 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js	Tue Oct 09 13:41:46 2012 +0200
@@ -577,6 +577,12 @@
     return ret;
   },
 
+  // If the filter has not been applied yet, apply it when it loses the focus
+  blur: function () {
+    this.form.grid.performAction();
+    return this.Super('blur', arguments);
+  },
+
   convertToStringValue: function (value) {
     var type = this.typeInstance;
     if (!isc.isA.String(value)) {