diff app/view/zusatzwerte/List.js @ 141:1fb79e16149f

Displaye Messeinheit in the Zusatzwerte Overview.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 28 Jun 2013 09:51:41 +0200
parents 00e43c00b7f2
children 8cb393ffe844
line wrap: on
line diff
--- a/app/view/zusatzwerte/List.js	Fri Jun 28 09:26:07 2013 +0200
+++ b/app/view/zusatzwerte/List.js	Fri Jun 28 09:51:41 2013 +0200
@@ -66,9 +66,11 @@
                 header: 'Maßeinheit',
                 dataIndex: 'pzsId',
                 renderer: function(value) {
-                    var store = Ext.getStore('Probenzusatzwerte');
-                    var record = store.getById(value);
-                    return record.get('mehId');
+                    var zstore = Ext.getStore('Probenzusatzwerte');
+                    var mstore = Ext.getStore('Messeinheit');
+                    var mehId = zstore.getById(value).get('mehId');
+                    var record = mstore.findRecord('mehId', mehId);
+                    return record.get('einheit');
                 }
             }
         ];

http://lada.wald.intevation.org