修改《角色发生变化时分班人数不对》bug

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-12-06 13:32:47 +08:00
parent 03a8d8ccc9
commit 19936fa05f
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ class MembersController < ApplicationController
joined.each do |join|
join.delete
end
@member.course_group_id = 0
end
if role.allowed_to?(:is_manager)
@courseInfo = CourseInfos.new(:user_id => @member.user_id, :course_id => @course.id)