|
|
|
@ -408,7 +408,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
@shixun.update_attributes(shixun_params)
|
|
|
|
|
@shixun.shixun_info.update_attributes(shixun_info_params)
|
|
|
|
|
@shixun.shixun_schools.delete_all
|
|
|
|
|
if params[:scope_partment].present? && params[:user_scope].to_i == 1
|
|
|
|
|
if params[:scope_partment].present? && params[:shixun][:user_scope].to_i == 1
|
|
|
|
|
arr = []
|
|
|
|
|
ids = School.where(:name => params[:scope_partment]).pluck(:id).uniq
|
|
|
|
|
ids.each do |id|
|
|
|
|
|