speedy32129 / time_logger

Redmine Time logger plugin. More than likely there is only going to be one more public release. New version has new time logging with the option of multiple loggers running at the same time, fixes for excessive loggng, and a whole new look.
Other
58 stars 43 forks source link

Option 'time entry' instead 'issue edit' #54

Open fosfozol opened 6 years ago

fosfozol commented 6 years ago

Can you create a destination option after stop the counter?

LIKE http://[redmine]/issues/123/edit?time_entry[hours]=1.0 OR http://[redmine]/issues/123/time_entries/new?time_entry[hours]=1.0

https://github.com/speedy32129/time_logger/blob/3802595e4cf1900c02c930647b2ac258c710c1e5/app/controllers/time_loggers_controller.rb#L63-L79

I tryied change 'edit' to 'time_entries/new', but I got this error:

ActionController::UrlGenerationError (No route matches {:action=>"time_entries/new", :controller=>"issues", :id=>123, :time_entry=>{:hours=>1.00}}):

Tkz

cspk commented 6 years ago

+1 for this feature. There's an open pull request #50 for this.