Project

General

Profile

Actions

Patch #5441

closed

Initialize TimeEntry attributes with params[:time_entry]

Added by Jérémie Delaitre over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Category:
Time tracking
Target version:
Start date:
2010-05-04
Due date:
% Done:

0%

Estimated time:

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

time_entry_init.diff (732 Bytes) time_entry_init.diff Jérémie Delaitre, 2010-05-04 17:54
time_entry_init.diff (2.14 KB) time_entry_init.diff Updated patch with functional test Jérémie Delaitre, 2010-10-26 19:44
time_entry_init.diff (2.1 KB) time_entry_init.diff With working functional test Jérémie Delaitre, 2010-11-04 22:40
Actions

Also available in: Atom PDF