related to issue 32815: remove unneeded variable
authorCarlos Aristu <carlos.aristu@openbravo.com>
Mon, 13 Jun 2016 16:09:31 +0200
changeset 29609 c285b5a9fd36
parent 29608 133394776db1
child 29610 9023f7c3e56c
related to issue 32815: remove unneeded variable
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 Jun 13 15:06:50 2016 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Mon Jun 13 16:09:31 2016 +0200
@@ -423,15 +423,14 @@
   expandSingleValue: function () {
     var newValue = this.parseValue(),
         oldValue = this.mapValueToDisplay(),
-        dateValue, editRow, currentFieldCriterion;
+        dateValue, editRow;
 
     if (!this.singleDateMode) {
       return;
     }
 
     // Apply the empty filter if the date text has been deleted
-    currentFieldCriterion = this.getFieldCriterionFromGrid();
-    if (newValue === '' && currentFieldCriterion) {
+    if (newValue === '' && this.getFieldCriterionFromGrid()) {
       return true;
     }