]> source.dussan.org Git - redmine.git/commitdiff
Merged r3323 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 17 Jan 2010 11:09:29 +0000 (11:09 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 17 Jan 2010 11:09:29 +0000 (11:09 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3324 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/reports_controller.rb

index 900dcfed9e04ac28fb468039b26ff8282366f99e..804bdd32f6136bf6bee48dc1a20751810890fcf8 100644 (file)
@@ -49,13 +49,13 @@ class ReportsController < ApplicationController
       render :template => "reports/issue_report_details"   
     when "assigned_to"
       @field = "assigned_to_id"
-      @rows = @project.members.collect { |m| m.user }
+      @rows = @project.members.collect { |m| m.user }.sort
       @data = issues_by_assigned_to
       @report_title = l(:field_assigned_to)
       render :template => "reports/issue_report_details"
     when "author"
       @field = "author_id"
-      @rows = @project.members.collect { |m| m.user }
+      @rows = @project.members.collect { |m| m.user }.sort
       @data = issues_by_author
       @report_title = l(:field_author)
       render :template => "reports/issue_report_details"  
@@ -70,8 +70,8 @@ class ReportsController < ApplicationController
       @versions = @project.shared_versions.sort
       @priorities = IssuePriority.all
       @categories = @project.issue_categories
-      @assignees = @project.members.collect { |m| m.user }
-      @authors = @project.members.collect { |m| m.user }
+      @assignees = @project.members.collect { |m| m.user }.sort
+      @authors = @project.members.collect { |m| m.user }.sort
       @subprojects = @project.descendants.active
       issues_by_tracker
       issues_by_version