fix school course count error bug

dev_aliyun
p31729568 5 years ago
parent 65e31445e1
commit 34b254b9c8

@ -2084,7 +2084,7 @@ end
@school_id = params[:school_id]
if params[:school_id] && params[:school_id] != ''
@courses = @courses.joins("join user_extensions ue on courses.tea_id = ue.user_id").where("ue.school_id = #{params[:school_id]}")
@courses = @courses.where(school_id: params[:school_id])
end
if params[:homepage_show]

Loading…
Cancel
Save