Mercurial > lada > lada-client
changeset 1250:5824c4b329f4
Fixed saving messprogramm.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 15 Nov 2016 10:50:14 +0100 |
parents | 979b4b9200a7 |
children | 0a47e8af9006 |
files | app/controller/form/Messprogramm.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/form/Messprogramm.js Thu Nov 10 14:44:29 2016 +0100 +++ b/app/controller/form/Messprogramm.js Tue Nov 15 10:50:14 2016 +0100 @@ -202,7 +202,10 @@ var formPanel = button.up('form'); var data = formPanel.getForm().getFieldValues(); var orte = Ext.data.StoreManager.get('orte'); - var gemId = orte.getById(data['ortId']).get('gemId'); + var gemId; + if (data['ortId'] !== null && data['ortId'] !== '') { + gemId = orte.getById(data['ortId']).get('gemId'); + } for (var key in data) { formPanel.getForm().getRecord().set(key, data[key]); }