[Lada-commits] [PATCH 2 of 2] Fixed issue23
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 15 15:31:54 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373895052 -7200
# Node ID 6aedf2026fb46746e682bb146706e37c8697feae
# Parent 19d79b41f95d9cd66efdfd55da68ffbb150d3d22
Fixed issue23
diff -r 19d79b41f95d -r 6aedf2026fb4 app/controller/Orte.js
--- 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() {
More information about the Lada-commits
mailing list