diff --git a/app/controllers/ecs/graduation_subitems_controller.rb b/app/controllers/ecs/graduation_subitems_controller.rb index b2570891d..03cf379bb 100644 --- a/app/controllers/ecs/graduation_subitems_controller.rb +++ b/app/controllers/ecs/graduation_subitems_controller.rb @@ -1,5 +1,6 @@ class Ecs::GraduationSubitemsController < Ecs::BaseController def index - @graduation_subitems = current_year.ec_graduation_subitems#.reorder('ec_graduation_requirements.position ASC, ec_graduation_subitems.position ASC') + subitems = current_year.ec_graduation_subitems.reorder('ec_graduation_requirements.position ASC, ec_graduation_subitems.position ASC') + @graduation_subitems = subitems.includes(:ec_graduation_requirement) end end \ No newline at end of file