[Lada-commits] [PATCH 6 of 7] Set messungsid for new messungunswerte

Wald Commits scm-commit at wald.intevation.org
Fri Jul 12 15:59:14 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373637456 -7200
# Node ID f0c59e7ee0bc19c07a775a708220cc98721ecb84
# Parent  92facbaece4294b5a744a30db2ea41e32ef0dc68
Set messungsid for new messungunswerte

diff -r 92facbaece42 -r f0c59e7ee0bc app/controller/Messwert.js
--- a/app/controller/Messwert.js	Fri Jul 12 15:57:09 2013 +0200
+++ b/app/controller/Messwert.js	Fri Jul 12 15:57:36 2013 +0200
@@ -38,9 +38,10 @@
         form.commit();
     },
     addMesswert: function(button) {
-        console.log('Adding new Messung for Probe ' + button.probeId);
+        console.log('Adding new Messwert for Messung ' + button.parentId + ' for Probe ' + button.probeId);
         var messung = Ext.create('Lada.model.Messwert');
         messung.set('probeId', button.probeId);
+        messung.set('messungsId', button.parentId);
         var view = Ext.widget('messwertecreate', {model: messung});
     },
     editMesswert: function(grid, record) {


More information about the Lada-commits mailing list