[Lada-commits] [PATCH] A fix which is supposed to reload the statuswerte store, when the Add button is used, part 2

Wald Commits scm-commit at wald.intevation.org
Wed Jan 13 15:25:06 CET 2016


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1452695096 -3600
# Node ID e92931b8f6b0fae27a7d1ae0285cdeb494cbc180
# Parent  5beb2581a9897d602d0413336fec11aeee050353
A fix which is supposed to reload the statuswerte store, when the Add button is used, part 2

diff -r 5beb2581a989 -r e92931b8f6b0 app/controller/grid/Status.js
--- a/app/controller/grid/Status.js	Wed Jan 13 15:19:42 2016 +0100
+++ b/app/controller/grid/Status.js	Wed Jan 13 15:24:56 2016 +0100
@@ -95,7 +95,7 @@
         var s = button.up('window').down('messungform').getRecord().get('status');
         var recentStatus = button.up('statusgrid').store.getById(s);
 
-        button.up('statusgrid').reload();
+        button.up('statusgrid').statusWerteStore.reload();
 
         //If possible copy the previous record into the new one.
         //this assumes the store is ordered correctly, most recent status last.
diff -r 5beb2581a989 -r e92931b8f6b0 app/view/grid/Status.js
--- a/app/view/grid/Status.js	Wed Jan 13 15:19:42 2016 +0100
+++ b/app/view/grid/Status.js	Wed Jan 13 15:24:56 2016 +0100
@@ -29,7 +29,7 @@
         this.emptyText = i18n.getMsg('statusgrid.emptyText');
 
         this.statusWerteStore = Ext.create('Lada.store.StatusWerte');
-        statusWerteStore.load({
+        this.statusWerteStore.load({
             params: {
                 messungsId: this.recordId
             }
@@ -141,7 +141,7 @@
             },
             editor: {
                 xtype: 'combobox',
-                store: statusWerteStore,
+                store: this.statusWerteStore,
                 queryMode: 'local',
                 displayField: 'wert',
                 valueField: 'id',


More information about the Lada-commits mailing list