Actions
Patch #5441
closedInitialize TimeEntry attributes with params[:time_entry]
Patch #5441:
Initialize TimeEntry attributes with params[:time_entry]
Description
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.
Files
Actions