changeset 1346:8742d020c685

Get kta code to display the correct value in ortszuordnung grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 06 Feb 2017 12:02:37 +0100
parents da98f0e7c288
children 2fc8e2b3c456
files app/view/grid/Ortszuordnung.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/Ortszuordnung.js	Mon Feb 06 11:57:05 2017 +0100
+++ b/app/view/grid/Ortszuordnung.js	Mon Feb 06 12:02:37 2017 +0100
@@ -149,7 +149,9 @@
                 if (!record || record.get('anlageId') === '') {
                     return '';
                 }
-                return record.get('anlageId');
+                var ktas = Ext.data.StoreManager.get('ktas');
+                var kta = ktas.getById(record.get('anlageId'));
+                return kta.get('code');
             }
         }];
         this.listeners = {

http://lada.wald.intevation.org