details:   https://code.openbravo.com/erp/devel/pi/rev/a7117f83ff8f
changeset: 21384:a7117f83ff8f
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Fri Oct 25 12:05:24 2013 +0530
summary:   Backout issue 24802: Backout fix pushed for this issue

The fix for this issue has been backed out. Will be fixed using a different 
approach.
The problem is currently fixed by clear the value of row count after the data 
has arrived.
But the ideal solution will be to clear it when fetching the records itself.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (26 lines):

diff -r c702f83569e0 -r a7117f83ff8f 
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
     Thu Oct 24 20:03:37 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Fri Oct 25 12:05:24 2013 +0530
@@ -1484,7 +1484,7 @@
   // mode is opened
   // - if there is only one record then select it directly
   dataArrived: function (startRow, endRow) {
-    var noSetSession, changeEvent, forceUpdate, newValue = '&nbsp;';
+    var noSetSession, changeEvent, forceUpdate;
     // do this now, to replace the loading message
     // TODO: add dynamic part of readonly (via setWindowSettings: see issue 
17441)
     if (this.uiPattern === 'SR' || this.uiPattern === 'RO' || this.uiPattern 
=== 'ED') {
@@ -1497,13 +1497,6 @@
     var record, ret = this.Super('dataArrived', arguments);
     this.updateRowCountDisplay();
 
-    //The updateRowCountDisplay has a delay associated with it,
-    //so prevent returning incorrect row count if there a request while on 
delay.
-    //Refer issue https://issues.openbravo.com/view.php?id=24802
-    if (this.filterEditor && this.filterEditor.getEditForm()) {
-      
this.filterEditor.getEditForm().setValue(isc.OBViewGrid.EDIT_LINK_FIELD_NAME, 
newValue);
-    }
-
     if (this.getSelectedRecords() && this.getSelectedRecords().length > 0) {
       this.selectionUpdated();
     }

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to