Mercurial > lada > lada-client
diff app/view/grid/PKommentar.js @ 959:841196768e86
Made kommentare-grids more robust
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 10 Nov 2015 10:53:06 +0100 |
parents | 0a233865a9c3 |
children | 6e67eb947258 |
line wrap: on
line diff
--- a/app/view/grid/PKommentar.js Tue Nov 10 09:50:06 2015 +0100 +++ b/app/view/grid/PKommentar.js Tue Nov 10 10:53:06 2015 +0100 @@ -75,12 +75,16 @@ dataIndex: 'erzeuger', width: 140, renderer: function(value) { + var r = ''; if (!value || value === '') { - return ''; + r = 'Error'; } var store = Ext.data.StoreManager.get('messstellen'); var record = store.getById(value); - return record.get('messStelle'); + if (record) { + r = record.get('messStelle'); + } + return r; }, editor: { xtype: 'combobox',