details:   /erp/devel/pi/rev/c2d039ea351d
changeset: 12144:c2d039ea351d
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Thu May 12 19:48:52 2011 +0200
summary:   Related to issue 17082: Alert Managment Window - Items can not be 
displayed

diffstat:

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

diffs (26 lines):

diff -r fbca014448d8 -r c2d039ea351d 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
        Thu May 12 19:39:01 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
        Thu May 12 19:48:52 2011 +0200
@@ -36,7 +36,7 @@
   editOnFocus: true,
   showCellContextMenus: true,
   selectOnEdit: false,
-
+  
   // keeps track if we are in objectSelectionMode or in toggleSelectionMode
   // objectSelectionMode = singleRecordSelection === true
   singleRecordSelection: false,
@@ -122,11 +122,10 @@
     this.Super('initWidget', arguments);
   },
   
-  setDataSource: function() {
-    this.Super('setDataSource', arguments);
+  setDataSource: function(ds) {
+    this.Super('setDataSource', [ds, this.gridFields]);
     // Some properties need to be set when the datasource is loaded to avoid 
errors when form is
     // open the first time.
-    this.setFields(this.gridFields);
     this.setSelectionAppearance('checkbox');
     
     // this extra call is needed to solve this issue:

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to