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

Internal error on Overiew page #85

Closed sepahram closed 5 years ago

sepahram commented 6 years ago

I'm getting this "internal error (500) on Overview page of projects. Although, it's OK on Roadmap.

Environment: Redmine version 3.4.6.stable Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu] Rails version 4.2.8 Environment production Database adapter PostgreSQL SCM: Git 2.17.1 Filesystem
Redmine plugins: progressive_projects_list 3.0.1

BTW, it doesn't matter which combination of checkboxes I set. Even if all checks are off.

progressive projects list plugin

stgeneral commented 6 years ago

Can you please try to install the plugin from the PR #84 and let me know if it works correctly?

sepahram commented 6 years ago

I got and apply the new code. It solved part of the problem, which is before adding Target version. As soon as I add a new version (with or without assigning an issue to it), I'm getting the same error.

By the way, It' OK on Roadmap. redmine-progressing-roadmap

And, this is when I added an issue, without any version added to the project: redmine-progressing-noversion

Right after adding a new Version, I get the error, and after removing all versions from the project, it gets all right again.

sepahram commented 6 years ago

Hi,

As a team member of mine found it, the following line:

progress_bar([version.closed_percent, version.completed_percent], :width => '30em', :legend => ('%0.0f%' % version.completed_percent))

must be changed to :

progress_bar([version.closed_percent, version.completed_percent], :width => '30em', :legend => '%0.0f%%' % version.completed_percent)

Hope it helps. Amir

Ataeifard commented 6 years ago

Escape the percent in '%0.0f%%', Tested on redmine 3.4.6, ruby 2.5.1

alex-andreiev commented 6 years ago

Hi. I fixed it. Can you please try again to install the plugin from the PR #84?

sepahram commented 6 years ago

Worked all right. Thanks.

stgeneral commented 5 years ago

Fixed by #84.