details:   https://code.openbravo.com/erp/devel/pi/rev/fff6d1f95d3c
changeset: 21376:fff6d1f95d3c
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Thu Oct 24 13:09:55 2013 +0530
summary:   Fixes Issue 0024802: Incorrect rowcount

The updateRowCountDisplay has a delay associated with it,
so prevent returning incorrect row count if there a request while on delay.

diffstat:

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

diffs (25 lines):

diff -r acb7c4bb1944 -r fff6d1f95d3c 
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
     Tue Oct 22 09:11:41 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Thu Oct 24 13:09:55 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;
+    var noSetSession, changeEvent, forceUpdate, newValue = '&nbsp;';
     // 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') {
@@ -1496,6 +1496,12 @@
 
     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
+    
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