hron / redmine_subtasks

This is plugin for Redmine for adding subtasks functionality.
53 stars 13 forks source link

Estimated hours not updated when running on redmine 'trunk' #8

Closed thorin closed 15 years ago

thorin commented 15 years ago

When running the redmine trunk with rails 2.2.2 and redmine_subtasks the estimated_hours field was not being updated.

I managed to fix it with the following patch:

 diff -r redmine_subtasks/lib/redmine_subtasks/redmine_ext/issue_patch.rb redmine_subtasks_fixed/lib/redmine_subtasks/redmine_ext/issue_patch.rb
 241,242c241,242
 <           def estimated_hours_with_subtasks=( h)
 <             estimated_hours_without_subtasks=( h) if leaf?
 \-\-\-
 >           def estimated_hours_with_subtasks=(h)
 >             self.estimated_hours_without_subtasks=(h) if leaf?

Hope this helps.

Ricardo

hron commented 15 years ago

The patch works good. Thanks!