|
|
|
@ -577,7 +577,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
cha_member.member_roles.where("role_id = 10").first.destroy
|
|
|
|
|
StudentsForCourse.where(:course_id => @course.id, :student_id => cha_member.user_id).destroy_all
|
|
|
|
|
end
|
|
|
|
|
@course.update_attributes(:tea_id => cha_member.user_id)
|
|
|
|
|
@course.update_attributes(:tea_id => cha_member.user_id, :school_id => cha_member.user.try(:user_extensions).try(:school_id))
|
|
|
|
|
man_member.member_roles.first.update_attributes(:role_id => 9)
|
|
|
|
|
course_act = CourseActivity.where(:course_id => @course.id, :course_act_id => @course.id, :course_act_type => 'Course').first
|
|
|
|
|
course_act.update_column('user_id', cha_member.user_id)
|
|
|
|
|