Vote #74323
完了Wrong done_ratio calculation for parent with subtask having estimated_hours=0
0%
説明
Hi there,
this patch corrects a bug in the calculation of the done_ratio value in some edge case.
Ways to reproduce this bug:
- Define a parent issue
- Define two subissues on this parent issue
- Set on one subissue estimated_hours to 0
- Close subissue with no estimated_hours -> parent issue has done_ratio = 50%
- Close subissue with estimated_hours set to zero value -> parent issue still has done_ratio = 50%
This patch solves this issue.
@Jean-Philippe: Maybe you or Toshi could take a look at this?
Best regards,
Daniel
journals
We also stumbled on this at "Planio":http://plan.io, the proposed diff fixes the problem, thanks!
--------------------------------------------------------------------------------
Patch committed with a test, thanks for pointing this out.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------