Related to issue 25475, issue 22797: Backed out changeset a9321acaca4e
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Thu, 13 Mar 2014 11:57:47 +0530
changeset 22697 6e9494ef95ff
parent 22696 a9321acaca4e
child 22698 b1b07d0d1e14
Related to issue 25475, issue 22797: Backed out changeset a9321acaca4e

Backing out the changeset as the commit has been incorrectly commited to issue 22797 instead of 25475.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js	Thu Mar 13 11:43:10 2014 +0530
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js	Thu Mar 13 11:57:47 2014 +0530
@@ -343,7 +343,7 @@
   },
 
   dataArrived: function (startRow, endRow) {
-    var record, i, rows, selectedLen = this.selectedIds.length,
+    var record, i, allRows, selectedLen = this.selectedIds.length,
         len, savedRecord, index, j, fields;
     fields = this.getFields();
     for (i = 0; i < selectedLen; i++) {
@@ -372,11 +372,11 @@
 
     if (selectedLen === 0) {
       // push all *selected* rows into selectedIds cache
-      rows = this.data.allRows || this.data.localData || [];
-      len = rows.length;
+      allRows = this.data.allRows || [];
+      len = allRows.length;
       for (i = 0; i < len; i++) {
-        if (rows[i] && rows[i][this.selectionProperty]) {
-          this.selectedIds.push(rows[i][OB.Constants.ID]);
+        if (allRows[i][this.selectionProperty]) {
+          this.selectedIds.push(allRows[i][OB.Constants.ID]);
         }
       }
     }