[Lada-commits] [PATCH 1 of 2] Do not try to display an undefined title

Wald Commits scm-commit at wald.intevation.org
Thu Sep 8 11:49:03 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1473321967 -7200
# Node ID 3e078af76b58208e9262217493e77e1274ea1cfd
# Parent  62f374ea7ab7ed4f28df82a95c928b729be8c52d
Do not try to display an undefined title.

diff -r 62f374ea7ab7 -r 3e078af76b58 app/view/widget/base/FieldSet.js
--- a/app/view/widget/base/FieldSet.js	Wed Sep 07 17:16:26 2016 +0200
+++ b/app/view/widget/base/FieldSet.js	Thu Sep 08 10:06:07 2016 +0200
@@ -29,7 +29,10 @@
             this.warningText += '\n';
         }
         this.warningText += warningText;
-        this.plainTitle = this.title;
+
+        if (this.title) {
+            this.plainTitle = this.title;
+        }
         this.origColor = this.getEl().dom.style['border-color'];
         var imgId = Ext.id();
         if (error) {


More information about the Lada-commits mailing list