Open buxx opened 10 years ago
ok, I'm gonna check this today or tomorrow if I got the time!
Cool, thank's !
Sorry for the delay. I'm afraid to say that actually we couldn't make that work correctly without to make any modification into the redmine's source code.
I've created an issue in redmine to be able to edit the timeunit (here: http://www.redmine.org/issues/17900)
By all the way, try this patch if you really need it : https://gist.github.com/spike008t/c002b782b3ebe02c5624
Ok, i see. Thank very much i will maybe apply this patch (chief advisory ^^)
Additional question:
call_hook(:controller_issues_edit_before_save, { :params => params, :issue => @issue, :time_entry => time_entry, :journal => @issue.current_journal})
It is not possible to manipulate times with issue.time_entries
instead of time_entry
?
Nope. I've tried it (and many other solutions...), but in fact isse.time_entries return me an ActiveRecord::Relation object and not an array in the patch method.
Arf Ok, thank you for your work !
Hi again ! I was trying to update redmine to fix other bugs about your plugin. But i don't success (nt ruby devlopper). So, i list for you these bugs, if you can update your patch it could be very appreciated. So bugs found:
I know this post is very old, but I have the same problem :
When tracker, state/project issue is changed, the form is Ajax reloaded. When reloaded the time is changed. For exemple: if "1" (day by default) is in field. After ajax reload we have 0.14. The 1 day has been converted with error.
I don't know how to patch it, to avoid automatic calculation of the estimated_time during tracker change or during status change in edit mode.
If you have just an idea, it could be usefull. Thanks
After using #12: Now we can use the time form when add a note, but the time unit is interpreted as hours, not with plugin default configuration (days for me) time unit.