Commit f43a0a5ed0fbad0e4e62135acb34512da2ee1d68
1 parent
2e7079bb
Exists in
master
and in
80 other branches
Fix save statistics requests
Showing
3 changed files
with
4 additions
and
1 deletions
Show diff stats
js/app/controllers/StatisticsModule.js
js/app/models/Statistic.js
... | ... | @@ -76,6 +76,7 @@ Ext.define('amdaModel.Statistic', { |
76 | 76 | values.type = this.get('type'); |
77 | 77 | values.name = this.get('name'); |
78 | 78 | values.timesrc = this.get('timesrc'); |
79 | + values.description = this.get('description'); | |
79 | 80 | |
80 | 81 | // if there's at least one parameter |
81 | 82 | values.parameter = []; | ... | ... |
js/app/views/StatisticsUI.js
... | ... | @@ -34,6 +34,8 @@ Ext.define('amdaUI.StatisticsUI', |
34 | 34 | // load object into form |
35 | 35 | var basicForm = this.formPanel.items.items[1].getForm(); |
36 | 36 | basicForm.loadRecord(this.object); |
37 | + // set object's TTs into the timeselector | |
38 | + this.timeSelector.setTTTab(this.object.get('timeTables')); | |
37 | 39 | // set parameters |
38 | 40 | this.paramGrid.reconfigure(this.object.params()); |
39 | 41 | }, | ... | ... |