diff app/controller/Messwert.js @ 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 748614e867b1
children 82f8b5638f26
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