diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index bc7383b3..cdf039b3 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -850,6 +850,7 @@ class EcCoursesController < ApplicationController logger.info("###############ec_graduation_subitem: #{ec_graduation_subitem.id}") # 课程体系 ec_course_support = ec_graduation_subitem.ec_course_supports.where(:ec_course_id => @ec_course.id).first + ec_course_support = EcCourseSupport.where(:ec_course_id => @ec_course.id).first if ec_course_support.blank? logger.info("###############################ec_course_support:#{ec_course_support.try(:id)}") weight = ec_course_support.try(:weigths) || 0 # position