[Lada-commits] [PATCH 2 of 3] Fix result list from generation of Probe objects

Wald Commits scm-commit at wald.intevation.org
Fri Oct 28 21:24:15 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1477677860 -7200
# Node ID a1bbfddb77b9ac45f0e86e6cb52a8b41630849ff
# Parent  9c429e7bf747d16d8a413887299b038f01214b64
Fix result list from generation of Probe objects.

These are adaptations to changes in the server due to the extinction
of the schema bund.

diff -r 9c429e7bf747 -r a1bbfddb77b9 app/view/window/GenProbenFromMessprogramm.js
--- a/app/view/window/GenProbenFromMessprogramm.js	Fri Oct 28 19:59:45 2016 +0200
+++ b/app/view/window/GenProbenFromMessprogramm.js	Fri Oct 28 20:04:20 2016 +0200
@@ -172,22 +172,7 @@
 
             var columns = [{
                 header: i18n.getMsg('prnId'),
-                dataIndex: 'probeIdAlt'
-            }, {
-                header: i18n.getMsg('netzbetreiberId'),
-                dataIndex: 'netzbetreiberId',
-                renderer: function(value) {
-                    var r = '';
-                    if (!value || value === '') {
-                        r = 'Error';
-                    }
-                    var store = Ext.data.StoreManager.get('netzbetreiber');
-                    var record = store.getById(value);
-                    if (record) {
-                        r = record.get('netzbetreiber');
-                    }
-                    return r;
-                }
+                dataIndex: 'idAlt'
             }, {
                 header: i18n.getMsg('mstId'),
                 dataIndex: 'mstId',


More information about the Lada-commits mailing list