diff --git a/app/models/course.rb b/app/models/course.rb index 50c9bd9..fc839bf 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -39,9 +39,9 @@ class Course record.student_ids.each do |student_id| selected_course = SelectedCourse.where(:member_profile_id => student_id,:course_id=>record.id).first if selected_course.nil? - SelectedCourse.create(:member_profile => MemberProfile.find(student_id) , :course_id=>record.id , :year=>record.year,:course_title_translations=>record.title_translations,:course_objective_translations=>record.objective_translations) + SelectedCourse.create(:member_profile => MemberProfile.find(student_id) , :course_id=>record.id , :year=>record.year,:course_title_translations=>record.title_translations) else - selected_course.update(:year=>record.year,:course_title_translations=>record.title_translations,:course_objective_translations=>record.objective_translations) + selected_course.update(:year=>record.year,:course_title_translations=>record.title_translations) end end student_ids_remove.each do |student_id| diff --git a/app/views/admin/courses/_form_assignment.html.erb b/app/views/admin/courses/_form_assignment.html.erb index 7d997f9..dbe540d 100644 --- a/app/views/admin/courses/_form_assignment.html.erb +++ b/app/views/admin/courses/_form_assignment.html.erb @@ -55,7 +55,7 @@