[Lada-commits] [PATCH] Fixed orte window in messprogramm

Wald Commits scm-commit at wald.intevation.org
Tue Nov 15 13:27:15 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1479212830 -3600
# Node ID 0a47e8af9006babf1fa41c24e5a1cf43a784ddc5
# Parent  5824c4b329f4a4edd3ff9430392b67aa8ec9a907
Fixed orte window in messprogramm.

diff -r 5824c4b329f4 -r 0a47e8af9006 app/view/window/MessprogrammOrt.js
--- a/app/view/window/MessprogrammOrt.js	Tue Nov 15 10:50:14 2016 +0100
+++ b/app/view/window/MessprogrammOrt.js	Tue Nov 15 13:27:10 2016 +0100
@@ -186,7 +186,7 @@
     var feature = args[0];
         if (feature.attributes.id &&
             feature.attributes.id !== '') {
-            var record = Ext.data.StoreManager.get('locations').getById(feature.attributes.id);
+            var record = Ext.data.StoreManager.get('orte').getById(feature.attributes.id);
             context.up('window').down('locationform').setRecord(record);
             context.up('window').down('locationform').setReadOnly(true);
             context.up('window').down('location').down('combobox').setValue(record.id);
@@ -211,9 +211,9 @@
         var id = combobox.getValue();
 
         if (details) {
-            var toLoad = Ext.data.StoreManager.get('locations').getById(id);
+            var toLoad = Ext.data.StoreManager.get('orte').getById(id);
             win.down('locationform').setRecord(toLoad);
-            win.down('map').selectFeature(id);
+            win.down('map').selectFeature(id, toLoad);
         }
     },
 


More information about the Lada-commits mailing list