changeset 1371:fae5757bd56c

Enabled initial display of ortinfo for Ortzuordnungwindow (Messprogramm)
author Maximilian Krambach <mkrambach@intevation.de>
date Thu, 09 Feb 2017 10:17:36 +0100
parents 102c6b9e0a05
children f2db1da82297
files app/view/window/Ortszuordnung.js
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/Ortszuordnung.js	Wed Feb 08 18:33:03 2017 +0100
+++ b/app/view/window/Ortszuordnung.js	Thu Feb 09 10:17:36 2017 +0100
@@ -268,12 +268,7 @@
                 projection: new OpenLayers.Projection('EPSG:3857')
             });
         map.map.addLayer(map.selectedFeatureLayer);
-        var ortId;
-        if (this.messprogramm) {
-            ortId = this.record.get('ort');
-                        } else {
-                            ortId = this.record.get('ortId');
-                        }
+        var ortId = this.record.get('ortId');
         if (ortId){
             var feat = map.featureLayer.getFeaturesByAttribute('id', ortId);
             var ortrecord = this.ortstore.findRecord('id', ortId);

http://lada.wald.intevation.org