Removed javascript error in [Personalize form layout] window
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 10 Aug 2011 00:38:37 +0200
changeset 13496 9bf83542bd7f
parent 13495 16a68f64fdfa
child 13497 ae573ce0f622
Removed javascript error in [Personalize form layout] window
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Wed Aug 10 00:13:11 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Wed Aug 10 00:38:37 2011 +0200
@@ -401,7 +401,7 @@
   // if it is not focusable then a next item is 
   // searched for
   setFocusInForm: function() {
-    if (!this.view.isActiveView()) {
+    if (!this.view || !this.view.isActiveView()) {
       return;
     }