Defect #5695
closedProblem with assignable users in the report page
0%
Description
In the report page, the assignable list shows all members of the project.
I think it's not right because non assignable members are also shown.
I made modifications on the reports-controller and it seems to work fine.
Take a look on the attached file.
Modification details¶
Line 52¶
From:
@rows = @project.members.collect { |m| m.user }.sort
To:
@rows = @project.assignable_users
Line 73¶
From: @assignees = @project.members.collect { |m| m.user }.sort
To:
@assignees = @project.members.select {|m| m.roles.detect {|role| role.assignable?}}.collect {|m| m.user}.sort
I'm a french beginner in ruby's development, so I don't know if it's a good solution.
Environment¶
Redmine version 0.9.4
Ruby version 1.8.5 (x86_64-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Database adapter mysql
Database schema version 20100221100219
Files
Related issues