summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-19 20:06:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-19 20:06:01 +0000
commitbb5ccb870ce312cada7d8c95f1cba655cd9468ac (patch)
tree088f27f2fbce9bf65e6566f0d449eb14d3237c9b /app/controllers
parent34828e18161c9886f87ec17696b55f51983fac9b (diff)
downloadredmine-bb5ccb870ce312cada7d8c95f1cba655cd9468ac.tar.gz
redmine-bb5ccb870ce312cada7d8c95f1cba655cd9468ac.zip
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15715 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/reports_controller.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index ef1bdc936..3198da6d7 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -76,14 +76,8 @@ class ReportsController < ApplicationController
@rows = @project.descendants.visible
@data = Issue.by_subproject(@project) || []
@report_title = l(:field_subproject)
- end
-
- respond_to do |format|
- if @field
- format.html {}
- else
- format.html { redirect_to :action => 'issue_report', :id => @project }
- end
+ else
+ render_404
end
end