changeset 1251:0a47e8af9006

Fixed orte window in messprogramm.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 15 Nov 2016 13:27:10 +0100
parents 5824c4b329f4
children 5db7e8abfd61
files app/view/window/MessprogrammOrt.js
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }
     },
 

http://lada.wald.intevation.org