Fixes postgres issue

pull/493/head
Hagen Schink 11 years ago
parent 1b1123c09f
commit ba8ae5484f
  1. 4
      app/controllers/projects_controller.rb

@ -327,6 +327,8 @@ private
end
def types_used_by_work_packages
@types_used_by_work_packages ||= Type.find_all_by_id(@project.work_packages.select(:type_id).uniq)
@types_used_by_work_packages ||= Type.find_all_by_id(WorkPackage.where(project_id: @project.id)
.select(:type_id)
.uniq)
end
end

Loading…
Cancel
Save