[Lada-commits] [PATCH] Set new field 'gemId' in messprogramm
Wald Commits
scm-commit at wald.intevation.org
Wed Sep 7 17:37:45 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1473262661 -7200
# Branch schema-update
# Node ID d57462b814443d21cd721e8845d3cf11e5287fda
# Parent 793748ded4d451a12c9fd19ef375d56945370174
Set new field 'gemId' in messprogramm.
diff -r 793748ded4d4 -r d57462b81444 app/controller/form/Messprogramm.js
--- a/app/controller/form/Messprogramm.js Wed Aug 31 16:24:53 2016 +0200
+++ b/app/controller/form/Messprogramm.js Wed Sep 07 17:37:41 2016 +0200
@@ -180,9 +180,12 @@
save: function(button) {
var formPanel = button.up('form');
var data = formPanel.getForm().getFieldValues(true);
+ var orte = Ext.data.StoreManager.get('orte');
+ var gemId = orte.getById(data['ortId']).get('gemId');
for (var key in data) {
formPanel.getForm().getRecord().set(key, data[key]);
}
+ formPanel.getForm().getRecord().set('gemId', gemId);
if (!formPanel.getForm().getRecord().get('letzteAenderung')) {
formPanel.getForm().getRecord().data.letzteAenderung = new Date();
}
More information about the Lada-commits
mailing list