Fixes issue 21697: Fix of issue 21697 reapplied
authorAugusto Mauch <augusto.mauch@openbravo.com>
Mon, 08 Oct 2012 16:31:43 +0200
changeset 18159 f574046d4be7
parent 18158 7b49d037a0cf
child 18160 ee9c755796d8
Fixes issue 21697: Fix of issue 21697 reapplied

The fix of the issue 21697 has been reapplied after the test it broke has been adapted.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Mon Oct 08 15:52:10 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Mon Oct 08 16:31:43 2012 +0200
@@ -322,6 +322,12 @@
       return;
     }
 
+    // Apply the empty filter if the date text has been deleted
+    // See issue https://issues.openbravo.com/view.php?id=21697
+    if (newValue === '') {
+      return true;
+    }
+
     if (newValue === oldValue) {
       return false;
     }