changeset 213:f0c59e7ee0bc

Set messungsid for new messungunswerte
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 12 Jul 2013 15:57:36 +0200
parents 92facbaece42
children 38e84783785f
files app/controller/Messwert.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {

http://lada.wald.intevation.org