summaryrefslogtreecommitdiff
path: root/app/controllers/version_reports_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/version_reports_controller.rb')
-rw-r--r--app/controllers/version_reports_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/version_reports_controller.rb b/app/controllers/version_reports_controller.rb
index fb7ac6c..a2755ed 100644
--- a/app/controllers/version_reports_controller.rb
+++ b/app/controllers/version_reports_controller.rb
@@ -9,7 +9,11 @@ class VersionReportsController < ApplicationController
before_filter :authorize
def show
- @issues = @version.fixed_issues
+ @show_time = params[:time] != 'false'
+ @show_money = params[:money] != 'false'
+ # the issues fetched here are the top level 'deliverable' issues.
+ # so, we don't want to include issues from any other projects.
+ @issues = @version.fixed_issues.where(:project_id => @version.project_id)
end
private