##// END OF EJS Templates
Prevent N queries on custom_fields when call /issues API....
Jean-Philippe Lang -
r12638:9733194cceb1
parent child
Show More
@@ -200,7 +200,7 class Issue < ActiveRecord::Base
200
200
201 # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
201 # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
202 def available_custom_fields
202 def available_custom_fields
203 (project && tracker) ? (project.all_issue_custom_fields & tracker.custom_fields.all) : []
203 (project && tracker) ? (project.all_issue_custom_fields & tracker.custom_fields) : []
204 end
204 end
205
205
206 def visible_custom_field_values(user=nil)
206 def visible_custom_field_values(user=nil)
General Comments 0
You need to be logged in to leave comments. Login now