summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-14 09:56:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-14 09:56:04 +0000
commitb60596532e322718d465a2073dae0537321d0509 (patch)
tree3089a96553c2f3bd641de9aff89c28309b63d450 /app
parent7b32a0371d55250fcd936c5c72de2e893fb8d1c6 (diff)
downloadredmine-b60596532e322718d465a2073dae0537321d0509.tar.gz
redmine-b60596532e322718d465a2073dae0537321d0509.zip
Don't always load data that is for html response only.
git-svn-id: http://svn.redmine.org/redmine/trunk@16182 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/issues_controller.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 9dba545dd..3311d3e30 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -102,13 +102,12 @@ class IssuesController < ApplicationController
@changesets.reverse!
end
- @allowed_statuses = @issue.new_statuses_allowed_to(User.current)
- @priorities = IssuePriority.active
- @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
- @relation = IssueRelation.new
-
respond_to do |format|
format.html {
+ @allowed_statuses = @issue.new_statuses_allowed_to(User.current)
+ @priorities = IssuePriority.active
+ @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
+ @relation = IssueRelation.new
retrieve_previous_and_next_issue_ids
render :template => 'issues/show'
}