|
|
|
@ -850,7 +850,6 @@ 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
|
|
|
|
|