@@ -352,7 +352,10 class ApplicationController < ActionController::Base | |||||
352 | # Find issues with a single :id param or :ids array param |
|
352 | # Find issues with a single :id param or :ids array param | |
353 | # Raises a Unauthorized exception if one of the issues is not visible |
|
353 | # Raises a Unauthorized exception if one of the issues is not visible | |
354 | def find_issues |
|
354 | def find_issues | |
355 | @issues = Issue.where(:id => (params[:id] || params[:ids])).preload(:project, :status, :tracker, :priority, :author, :assigned_to, :relations_to).to_a |
|
355 | @issues = Issue. | |
|
356 | where(:id => (params[:id] || params[:ids])). | |||
|
357 | preload(:project, :status, :tracker, :priority, :author, :assigned_to, :relations_to, {:custom_values => :custom_field}). | |||
|
358 | to_a | |||
356 | raise ActiveRecord::RecordNotFound if @issues.empty? |
|
359 | raise ActiveRecord::RecordNotFound if @issues.empty? | |
357 | raise Unauthorized unless @issues.all?(&:visible?) |
|
360 | raise Unauthorized unless @issues.all?(&:visible?) | |
358 | @projects = @issues.collect(&:project).compact.uniq |
|
361 | @projects = @issues.collect(&:project).compact.uniq |
General Comments 0
You need to be logged in to leave comments.
Login now