diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index fa286b43b..2ebcec009 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1987,7 +1987,7 @@ class UsersController < ApplicationController end end elsif params[:send_ids].present? - send_ids = params[:send_ids].split(" ") + send_ids = params[:send_ids].split(",") course_ids = params[:course_ids] if course_ids.nil? @flag = false @@ -2139,7 +2139,7 @@ class UsersController < ApplicationController @ori = ori end elsif params[:send_ids].present? - send_ids = params[:send_ids].split(" ") + send_ids = params[:send_ids].split(",") project_ids = params[:projects_ids] if project_ids.nil? @flag = false @@ -2286,7 +2286,7 @@ class UsersController < ApplicationController end @ori = ori elsif params[:send_ids].present? - send_ids = params[:send_ids].split(" ") + send_ids = params[:send_ids].split(",") subfield_id = params[:subfield] if subfield_id.nil? @flag = false diff --git a/app/views/users/_resource_share_for_orgs.html.erb b/app/views/users/_resource_share_for_orgs.html.erb index b1736a378..dac52e360 100644 --- a/app/views/users/_resource_share_for_orgs.html.erb +++ b/app/views/users/_resource_share_for_orgs.html.erb @@ -1,7 +1,8 @@
发送到
- diff --git a/app/views/users/_resource_share_for_project_popup.html.erb b/app/views/users/_resource_share_for_project_popup.html.erb index 23be825da..65031befa 100644 --- a/app/views/users/_resource_share_for_project_popup.html.erb +++ b/app/views/users/_resource_share_for_project_popup.html.erb @@ -2,7 +2,8 @@
发送到
- diff --git a/app/views/users/_resource_share_popup.html.erb b/app/views/users/_resource_share_popup.html.erb index 93e0d0c47..bfb1d9761 100644 --- a/app/views/users/_resource_share_popup.html.erb +++ b/app/views/users/_resource_share_popup.html.erb @@ -4,7 +4,8 @@
发送到
- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 6eb464f64..69698417b 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1192,6 +1192,7 @@ function chooseSendType2(res_id,res_ids, user_id, send_type, type){ data:{send_id:res_id, send_ids:res_ids ,send_type:send_type} }); } else if(sendType == '2') { + console.log(res_ids); $.ajax({ type: 'get', url: '/users/' + user_id + '/search_user_project' + '?' + "&type=" + type,