Fixed issue 24565: 'Form Personalization' window opens again
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 22 Aug 2013 23:45:59 +0200
changeset 21032 b881fe55648e
parent 21031 87a67cacdd7a
child 21033 ce9de3ea4540
Fixed issue 24565: 'Form Personalization' window opens again
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-notes.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-notes.js	Wed Aug 21 17:53:18 2013 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-notes.js	Thu Aug 22 23:45:59 2013 +0200
@@ -428,7 +428,7 @@
     this.addMember(this.noteListGrid);
 
     // use or get DS
-    if (view.notesDataSource) {
+    if (view && view.notesDataSource) {
       this.noteListGrid.setDataSource(view.notesDataSource);
     } else {
       OB.Datasource.get(this.noteDSId, this.noteListGrid, null, true);