# HG changeset patch # User Dustin Demuth # Date 1452694782 -3600 # Node ID 5beb2581a9897d602d0413336fec11aeee050353 # Parent 4bbb3da88c14ac8fc3ad54696a5a1c108649d159 A fix which is supposed to reload the statuswerte store, when the Add button is used diff -r 4bbb3da88c14 -r 5beb2581a989 app/controller/grid/Status.js --- a/app/controller/grid/Status.js Mon Jan 11 11:36:35 2016 +0100 +++ b/app/controller/grid/Status.js Wed Jan 13 15:19:42 2016 +0100 @@ -95,6 +95,8 @@ var s = button.up('window').down('messungform').getRecord().get('status'); var recentStatus = button.up('statusgrid').store.getById(s); + button.up('statusgrid').reload(); + //If possible copy the previous record into the new one. //this assumes the store is ordered correctly, most recent status last. // Do not copy, if current userid differs from the id of the current status diff -r 4bbb3da88c14 -r 5beb2581a989 app/view/grid/Status.js --- a/app/view/grid/Status.js Mon Jan 11 11:36:35 2016 +0100 +++ b/app/view/grid/Status.js Wed Jan 13 15:19:42 2016 +0100 @@ -22,12 +22,13 @@ recordId: null, readOnly: true, allowDeselect: true, + statusWerteStore: null, initComponent: function() { var i18n = Lada.getApplication().bundle; this.emptyText = i18n.getMsg('statusgrid.emptyText'); - var statusWerteStore = Ext.create('Lada.store.StatusWerte'); + this.statusWerteStore = Ext.create('Lada.store.StatusWerte'); statusWerteStore.load({ params: { messungsId: this.recordId