Actions
Bug #2214
openxmera Omnia - Collection #2189: RM related issues
Unexpected behavior when switching to a status with no %-done value
Start date:
Due date:
% Done:
0%
Estimated time:
Affected Version:
Compatible Redmine Version:
5.1.z
Pull Request Link:
Description
Suppose having this setting for issue status:
A user having the an issue to status In progress
will the %-done value as expected:
Switching, however, to a status having not %-done value assigned at all behaves unexpected:
Files
Actions
#1
Updated by liaham 9 months ago
- File clipboard-202407151425-rcp9r.png clipboard-202407151425-rcp9r.png added
- File clipboard-202407151426-mjtyk.png clipboard-202407151426-mjtyk.png added
- File clipboard-202407151429-19gof.png clipboard-202407151429-19gof.png added
- File clipboard-202407151430-ppuez.png clipboard-202407151430-ppuez.png added
- Subject changed from %-done won't be reset to 0 when switching to a status with no %-done value to Unexpected behavior when switching to a status with no %-done value
- Description updated (diff)
Updated by liaham 9 months ago
The problem could be fixed in Issue#done_ration
:
def done_ratio
if Issue.use_status_for_done_ratio? && status && status.default_done_ratio
status.default_done_ratio
else
read_attribute(:done_ratio)
end
end
And in Issue#update_done_ration_from_issue_status
# Set the done_ratio using the status if that setting is set. This will keep the done_ratios
# even if the user turns off the setting later
def update_done_ratio_from_issue_status
if Issue.use_status_for_done_ratio? && status && status.default_done_ratio
self.done_ratio = status.default_done_ratio
end
end
Actions