[Lada-commits] [PATCH] Fixed type error in ortszuordnung when user has 'funktion = 4'
Wald Commits
scm-commit at wald.intevation.org
Wed Feb 8 15:36:59 CET 2017
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1486564615 -3600
# Node ID 993e542796fded4b0a568d85deca4662cfd657e9
# Parent e98ec562764f48efe685821d39360a67091dc164
Fixed type error in ortszuordnung when user has 'funktion = 4'
diff -r e98ec562764f -r 993e542796fd app/controller/Ort.js
--- a/app/controller/Ort.js Wed Feb 08 15:05:32 2017 +0100
+++ b/app/controller/Ort.js Wed Feb 08 15:36:55 2017 +0100
@@ -179,6 +179,9 @@
return;
}
var grid = Ext.ComponentQuery.query('ortstammdatengrid')[0];
+ if (!grid.up('ortpanel')) {
+ return;
+ }
if (!record ||
!Ext.Array.contains(Lada.netzbetreiber,
record.get('netzbetreiberId'))) {
diff -r e98ec562764f -r 993e542796fd app/view/grid/Orte.js
--- 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();
}
More information about the Lada-commits
mailing list