[Lada-commits] [PATCH 3 of 3] Set IdProperty and fix creating and updating mkommentar

Wald Commits scm-commit at wald.intevation.org
Wed Jul 17 10:59:12 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374051483 -7200
# Node ID d3f4a39bf89eecc3be923f57c3e571a301bf5d75
# Parent  2794341bfc8a05ed0d08a9b4bf1beb8e30c059db
Set IdProperty and fix creating and updating mkommentar

diff -r 2794341bfc8a -r d3f4a39bf89e app/model/MKommentar.js
--- a/app/model/MKommentar.js	Wed Jul 17 10:56:06 2013 +0200
+++ b/app/model/MKommentar.js	Wed Jul 17 10:58:03 2013 +0200
@@ -2,6 +2,7 @@
     extend: 'Ext.data.Model',
     fields: [
         {name: "id"},
+        {name: "kid"},
         {name: "messungsId"},
         {name: "probeId"},
         {name: "erzeuger"},
@@ -19,7 +20,7 @@
         }
     },
     getEidi: function() {
-        var kid =  this.get('id').kid;
+        var kid =  this.get('kid');
         var messId = this.get('messungsId');
         var probeId = this.get('probeId');
         return "/" + kid + "/" + messId + "/" + probeId;


More information about the Lada-commits mailing list