Mercurial > lada > lada-client
diff app/view/grid/Orte.js @ 1366:993e542796fd
Fixed type error in ortszuordnung when user has 'funktion = 4'
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Feb 2017 15:36:55 +0100 |
parents | da98f0e7c288 |
children | 1cc11bada44e |
line wrap: on
line diff
--- a/app/view/grid/Orte.js Wed Feb 08 15:05:32 2017 +0100 +++ b/app/view/grid/Orte.js Wed Feb 08 15:36:55 2017 +0100 @@ -427,6 +427,10 @@ if (Ext.Array.contains(Lada.funktionen, 4)) { var panel = this.up('ortpanel'); + // We are not in stammdaten editor. + if (!panel) { + return; + } panel.down('button[action=add]').enable(); panel.down('button[action=addMap]').enable(); }