// Not necesary anymore because the store is set to autosync?
this.loggingInterval.save();
...
...
@@ -302,7 +412,7 @@ function launchTreePanel(){
// Stop logging
this.loggingTask = null;
this.loggingStartTime = null;
this.loggingStartDate = null;
// Continue editing the task
var rowIndex = hourIntervalStore.count() -1;
...
...
@@ -324,7 +434,7 @@ function launchTreePanel(){
// Stop logging
this.loggingTask = null;
this.loggingStartTime = null;
this.loggingStartDate = null;
},
onButtonDeleteLogging: function() {
...
...
@@ -339,7 +449,7 @@ function launchTreePanel(){
// Stop logging
this.loggingTask = null;
this.loggingStartTime = null;
this.loggingStartDate = null;
},
/**
...
...
@@ -361,11 +471,18 @@ function launchTreePanel(){
var projectId = record.get('id');
var date = Ext.getCmp('datePicker').getValue();
hourIntervalStore.getProxy().extraParams = {
/* hourIntervalStore.getProxy().extraParams = {
project_id: projectId,
user_id: @current_user_id@,
format: 'json'
};
*/
hourIntervalStore.getProxy().extraParams = {
query: 'project_id in (select p.project_id from im_projects p, im_projects main_p where main_p.project_id = '+projectId+' and p.tree_sortkey betweeen main_p.tree_sortkey and tree_right(main_p.tree_sortkey))',