Commit ac7d2629 authored by Frank Bergmann's avatar Frank Bergmann

Summary: - Timesheet Intervals: Fixed issue with double-click directly after load

parent 997be409
......@@ -246,9 +246,11 @@ function launchTreePanel(){
console.log('GanttButtonController.onGridBeforeEdit');
console.log(context.record);
// Complete the hourInterval created when starting to log
this.loggingInterval.set('interval_end_time', /\d\d:\d\d/.exec(""+new Date())[0]);
var endTime = context.record.get('interval_end_time');
if (typeof endTime === 'undefined' || "" == endTime) {
endTime = /\d\d:\d\d/.exec(""+new Date())[0];
context.record.set('interval_end_time', endTime);
}
// Return true to indicate to the editor that it's OK to edit
return true;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment