changeset 1354:02252ce0cf1e

Ortserstellung validator: fix reference to form
author Maximilian Krambach <mkrambach@intevation.de>
date Tue, 07 Feb 2017 16:44:07 +0100
parents 39dbdfa00c91
children d8db43ac9c12
files app/controller/form/Ortserstellung.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/form/Ortserstellung.js	Tue Feb 07 16:06:08 2017 +0100
+++ b/app/controller/form/Ortserstellung.js	Tue Feb 07 16:44:07 2017 +0100
@@ -135,7 +135,7 @@
     checkCommitEnabled: function(callingEl) {
         var panel;
         if (callingEl.up) { //called by a field in the form
-            panel = callingEl.up('panel').up('panel');
+            panel = callingEl.up('ortserstellungsform');
         } else { //called by the form
             panel = callingEl.owner;
         }

http://lada.wald.intevation.org