Initialize TimeEntry attributes with params[:time_entry]
|Assignee:||Jean-Philippe Lang||% Done:|
I've made a one-liner patch to fill the new TimeEntry attributes created in IssuesController#update_issue_from_param with the params[:time_entry].
This allows to pre-fill the spent time field when accessing the issue editing page.
I want to use this feature for my time tracker plugin. When the user stops his time tracker, I want to redirect him to the issue editing page to let him change what he wants (%done ratio for example) and enter a time log comment. However, I need to be able to fill the spent time field for him with the time tracker value.
#1 Updated by Ludovic Gasc over 8 years ago
- Assignee changed from Eric Davis to Jean-Philippe Lang
I valid this patch, it's useful with this plugin: http://github.com/delaitre/redmine_time_tracker
Moreover, some other plugins could use this feature to pre-populate the timesheet part in the edit form.
Somebody in the Redmine team could integrate this patch in the Redmine trunk ?