details:   https://code.openbravo.com/erp/devel/pi/rev/789521cc4e6f
changeset: 23384:789521cc4e6f
user:      Guillermo Gil <guillermo.gil <at> openbravo.com>
date:      Mon May 26 16:55:57 2014 +0200
summary:   Related to issue 26547: Reverted changes due a bad behavior

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  8 ++------
 
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
         |  6 +-----
 
modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
                  |  1 -
 3 files changed, 3 insertions(+), 12 deletions(-)

diffs (55 lines):

diff -r a28ffa220933 -r 789521cc4e6f 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Mon May 26 14:11:50 2014 +0000
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Mon May 26 16:55:57 2014 +0200
@@ -1626,7 +1626,7 @@
 
   refreshGrid: function (callback, newRecordsToBeIncluded) {
     var originalCriteria, criteria = {},
-        newRecordsCriteria, newRecordsLength, i, index, recordSelected;
+        newRecordsCriteria, newRecordsLength, i, index;
 
     //check whether newRecordsToBeIncluded contains records not part of the 
current grid and remove them.
     if (newRecordsToBeIncluded && newRecordsToBeIncluded.length > 0 && 
this.data) {
@@ -1646,14 +1646,10 @@
       this.notRemoveFilter = true;
     }
     this.actionAfterDataArrived = callback;
-    recordSelected = this.getRecordIndex(this.getSelectedRecord());
     this.invalidateCache();
 
     var context = {
-      showPrompt: false,
-      params: {
-        _recordSelected: recordSelected
-      }
+      showPrompt: false
     };
 
     // Removes the 'or' clause, if there is one
diff -r a28ffa220933 -r 789521cc4e6f 
modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
--- 
a/modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
     Mon May 26 14:11:50 2014 +0000
+++ 
b/modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
     Mon May 26 16:55:57 2014 +0200
@@ -432,11 +432,7 @@
     if (!forCountOperation && !directNavigation
         && parameters.containsKey(JsonConstants.TARGETRECORDID_PARAMETER)) {
       final String targetRecordId = 
parameters.get(JsonConstants.TARGETRECORDID_PARAMETER);
-      if (parameters.containsKey((JsonConstants.RECORD_SELECTED))) {
-        targetRowNumber = 
Integer.parseInt(parameters.get(JsonConstants.RECORD_SELECTED));
-      } else {
-        targetRowNumber = queryService.getRowNumber(targetRecordId);
-      }
+      targetRowNumber = queryService.getRowNumber(targetRecordId);
       if (targetRowNumber != -1) {
         startRow = targetRowNumber;
         // if the startrow is really low, then just read from 0
diff -r a28ffa220933 -r 789521cc4e6f 
modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
--- 
a/modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
      Mon May 26 14:11:50 2014 +0000
+++ 
b/modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
      Mon May 26 16:55:57 2014 +0200
@@ -62,7 +62,6 @@
   public static final String ENDROW_PARAMETER = "_endRow";
   public static final String SORTBY_PARAMETER = "_sortBy";
   public static final String TARGETRECORDID_PARAMETER = "_targetRecordId";
-  public static final String RECORD_SELECTED = "_recordSelected";
   public static final String DATASOURCE_PARAMETER = "_dataSource";
   public static final String TEXTMATCH_PARAMETER = "_textMatchStyle";
   public static final String TEXTMATCH_PARAMETER_OVERRIDE = 
"_textMatchStyleOverride";

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to