[Lada-commits] [PATCH] Fixed Ortszuordnung in case netzbetreiber owns no Ort

Wald Commits scm-commit at wald.intevation.org
Fri Feb 17 12:05:32 CET 2017


# HG changeset patch
# User Maximilian Krambach <mkrambach at intevation.de>
# Date 1487329530 -3600
# Node ID 6ccaeeeb41ad6f776342838ba00ed0608cc3b3fb
# Parent  e95ac7584c2c59ce40029834a5feb54880d7f42e
Fixed Ortszuordnung in case netzbetreiber owns no Ort

diff -r e95ac7584c2c -r 6ccaeeeb41ad app/view/window/Ortszuordnung.js
--- a/app/view/window/Ortszuordnung.js	Tue Feb 14 14:30:15 2017 +0100
+++ b/app/view/window/Ortszuordnung.js	Fri Feb 17 12:05:30 2017 +0100
@@ -191,7 +191,10 @@
         } else {
             ortId = this.record.get('ortId');
         }
-        if (ortId !== undefined && !this.ortstore.findRecord('id', ortId)) {
+        if (ortId !== undefined
+            && ortId !== ''
+            && ortId !== null
+            && !this.ortstore.findRecord('id', ortId)) {
             var record = Ext.create('Lada.model.Ort');
             record.set('id', ortId);
             this.ortstore.add(record);


More information about the Lada-commits mailing list