software-project / scrum-pm

Scrum PM is a plugin for Redmine ticket management system. It adds Scrum items like backlog, dashboard and others.
www.software-project.eu/EN/scrumpm
126 stars 47 forks source link

Counter of unassigned points is global, not per-project #40

Closed ya-isakov closed 14 years ago

ya-isakov commented 14 years ago

Hello, I install your greate plugin, but found that Total story points shows sum of points from all projects, not from current one. I found that source of this error is UserStory.find(:all, :conditions => ["version_id is null"]).each { |i| data[:un_assign] += i.time_estimate.value } in app/helpers/sprints_helper.rb. Please, fix it

bureku commented 14 years ago

Fix is at line 84 UserStory.find(:all, :conditions => ["version_id is NULL AND project_id = ?", project.id]).each { |i| .......