Initialize TimeEntry attributes with params[:time_entry]
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.
Updated by Ludovic Gasc over 13 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 ?
Updated by Jérémie Delaitre over 13 years ago
Ok, I finally have a working redmine install for testing purpose. It appears that my previous patch contains a bug in the functional test. I fixed it in this new patch (which should be the last one!).