prevent problems in CF edit dialog
authorPhilipp Schüle <p.schuele@metaways.de>
Fri, 21 Apr 2017 09:34:35 +0000 (11:34 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Fri, 21 Apr 2017 09:34:20 +0000 (11:34 +0200)
... if curApp is not found
... there has been a problem with Tinebase
 which is no longer returned by appMgr

Change-Id: I13cd5ad9959185f4f9d021f9bc1b8bd2fbe58de0
Reviewed-on: http://gerrit.tine20.com/customers/4569
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Admin/js/customfield/EditDialog.js

index c588ede..7ffe58a 100644 (file)
@@ -341,7 +341,7 @@ Tine.Admin.CustomfieldEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
             }
 
             var curApp =  Tine.Tinebase.appMgr.get(app.get('name'));
-            var curTitle = curApp.getTitle();
+            var curTitle = curApp ? curApp.getTitle() : '';
 
             app.set('i18nName', curTitle);
         }, this);