Project

General

Profile

Actions

Bug #2214

open

xmera Omnia - Collection #2189: RM related issues

Unexpected behavior when switching to a status with no %-done value

Added by liaham 9 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Affected Version:
Compatible Redmine Version:
5.1.z

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


Related issues 1 (1 open0 closed)

Copied to Redmine - Bug #2268: Unexpected behavior when switching to a status with no %-done valueNew

Actions

Updated by liaham 9 months ago

Actions #3

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 #4

Updated by liaham 9 months ago

  • Parent task set to #2012
Actions #5

Updated by liaham 9 months ago

  • Parent task changed from #2012 to #2227
Actions #6

Updated by liaham 8 months ago

  • Category set to 36
Actions #7

Updated by liaham 8 months ago

  • Copied to Bug #2268: Unexpected behavior when switching to a status with no %-done value added
Actions #8

Updated by liaham 8 months ago

  • Target version set to 5.1.3
Actions #10

Updated by liaham 7 months ago

  • Parent task changed from #2227 to #2189
Actions #11

Updated by liaham 7 months ago

  • Target version changed from 5.1.3 to 6.0.0
Actions #12

Updated by liaham 7 months ago

  • Target version changed from 6.0.0 to reported
Actions

Also available in: Atom PDF