From b80898cf6ba3bedbc0f6931f97cc88103e044e18 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 17 Oct 2017 09:34:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E8=AE=AD=E5=85=B3?= =?UTF-8?q?=E8=81=94=E8=AF=BE=E7=A8=8B=E4=B9=9F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/shixuns_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 1fee3c08a..c11a3f69f 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -774,7 +774,7 @@ class ShixunsController < ApplicationController @shixun.shixun_major_courses << ShixunMajorCourse.new(:major_id => params[:major_id], :course_list_id => course_id) end end - # @shixun.major_id = params[:major_id] + @shixun.major_id = params[:major_id] @shixun.shixun_major_courses.destroy_all course_lists = params[:course_list].strip.split(",") course_lists.each do |course|