changeset 216:6aedf2026fb4

Fixed issue23
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 15 Jul 2013 15:30:52 +0200
parents 19d79b41f95d
children 4db982514a5f
files app/controller/Orte.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Orte.js	Mon Jul 15 15:30:42 2013 +0200
+++ b/app/controller/Orte.js	Mon Jul 15 15:30:52 2013 +0200
@@ -49,7 +49,8 @@
         var ortdetailstore = Ext.getStore('Ortedetails');
         var newortdetail = false;
 
-        var ortid = fform.findField('ortId').getValue();
+        var ortidfield = fform.findField('ortId');
+        var ortid = ortidfield.getValue();
         if (ortid === null) {
             console.log('New Ortdetail');
             ortdetail = Ext.create('Lada.model.Ortdetail');
@@ -74,6 +75,7 @@
                     var response = options.operations.create[0].store.proxy.reader.jsonData;
                     form.model.set('ortId', response.ortId);
                 }
+                ortidfield.setValue(ortid);
                 form.commit();
             },
             failure: function() {

http://lada.wald.intevation.org