]> source.dussan.org Git - redmine.git/commitdiff
Display shared versions on the issue summary view (#4425).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 18 Dec 2009 14:59:19 +0000 (14:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 18 Dec 2009 14:59:19 +0000 (14:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3187 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/reports_controller.rb

index d192a19557f5943c91565d65a9642e9c3e4f7c0a..900dcfed9e04ac28fb468039b26ff8282366f99e 100644 (file)
@@ -31,7 +31,7 @@ class ReportsController < ApplicationController
       render :template => "reports/issue_report_details"
     when "version"
       @field = "fixed_version_id"
-      @rows = @project.versions.sort
+      @rows = @project.shared_versions.sort
       @data = issues_by_version
       @report_title = l(:field_version)
       render :template => "reports/issue_report_details"
@@ -67,7 +67,7 @@ class ReportsController < ApplicationController
       render :template => "reports/issue_report_details"  
     else
       @trackers = @project.trackers
-      @versions = @project.versions.sort
+      @versions = @project.shared_versions.sort
       @priorities = IssuePriority.all
       @categories = @project.issue_categories
       @assignees = @project.members.collect { |m| m.user }