Fixed issue 24565: 'Form Personalization' window opens again
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 22 Aug 2013 23:45:59 +0200
changeset 21015 94e4764fba68
parent 21014 a6e49e260820
child 21016 72c8472c7de4
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	Thu Aug 22 18:16:26 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);