diff options
author | elijah <elijah@riseup.net> | 2015-06-07 23:35:50 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-06-07 23:35:50 -0700 |
commit | de074b945d294899cb92de2d0a41ee7f700e8b35 (patch) | |
tree | 39cec3f4dcc67f17f0db0b8ba51a04da8ba0bcdf /app/controllers | |
parent | fc1cffcacfa0e885c481e9d993f7c541673912c8 (diff) |
added money, added ability to hide hours or money, don't include issues from sub-projects.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/version_reports_controller.rb | 6 |
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 |