修改课程列表还显示已删除班级的BUG

dev_pull
yuanke 9 years ago
parent b994e786ab
commit 796c5d5666

@ -14,6 +14,10 @@ class SyllabusesService
courses.each do |c| courses.each do |c|
other.courses << c[:course] unless c[:course].syllabus other.courses << c[:course] unless c[:course].syllabus
end end
user.syllabuses.each do |syllabus|
syllabus.courses = syllabus.courses.not_deleted
end
user.syllabuses.to_a << other user.syllabuses.to_a << other
end end

Loading…
Cancel
Save