ergoserv / redmine-progressive-projects-list

⛏️ Redmine plugin that powers a project list with progress bars for every project and version.
https://ergoserv.github.io/redmine-progressive-projects-list/
MIT License
109 stars 57 forks source link

Problem with project progress #67

Closed mothsun closed 7 years ago

mothsun commented 8 years ago

I use redmine3.2 , no more other plugins . All of my projects display 100% progress , and the color is full of green in the progress bar , no matter the issues' status .

I modify the file project_decorator.rb:

  # Cloned from Version#completed_percent
  def issues_completed_percent
    if issues.count == 0
      0
    elsif issues.open.count == 0
      100 [ here I change it to 50 value , just a radom number ]
    else
      issues_progress(false) + issues_progress(true)
    end
  end

After that , the problem is solved . I do not understand .
plz take a look , thx !

stgeneral commented 8 years ago

@mothsun do you use the latest version of the plugin? Version 3.0.1?

Version 3.0.1 is used on the several Redmine 3.2 installation without such issue. Probably you have some custom settings/configuration?

stgeneral commented 7 years ago

Closing due to feedback absence.