mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
code layout clean up app/controllers/application_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19284 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -352,7 +352,9 @@ class ApplicationController < ActionController::Base
|
||||
def find_issues
|
||||
@issues = Issue.
|
||||
where(:id => (params[:id] || params[:ids])).
|
||||
preload(:project, :status, :tracker, :priority, :author, :assigned_to, :relations_to, {:custom_values => :custom_field}).
|
||||
preload(:project, :status, :tracker, :priority,
|
||||
:author, :assigned_to, :relations_to,
|
||||
{:custom_values => :custom_field}).
|
||||
to_a
|
||||
raise ActiveRecord::RecordNotFound if @issues.empty?
|
||||
raise Unauthorized unless @issues.all?(&:visible?)
|
||||
|
||||
Reference in New Issue
Block a user