details:   https://code.openbravo.com/erp/devel/pi/rev/491a3b333503
changeset: 21379:491a3b333503
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Thu Oct 24 14:27:52 2013 +0530
summary:   Related to Issue 24802 : Checked form availability before updating 
row count.

Updating the row count to null only if filter editor and editForm are available.

diffstat:

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

diffs (14 lines):

diff -r 824d700983d1 -r 491a3b333503 
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 10:33:39 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Thu Oct 24 14:27:52 2013 +0530
@@ -1500,7 +1500,9 @@
     //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.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