From 459e1f332b359542b1b0a1d0ee1c4fade9a63a76 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 18 Dec 2015 19:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=88=86=E7=BB=84=E4=BD=9C?= =?UTF-8?q?=E5=93=81=E6=97=B6=E5=A6=82=E6=9E=9C=E4=B8=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=88=86=E7=BB=84=E6=88=90=E5=91=98=E5=88=99=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/edit.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/student_work/edit.html.erb b/app/views/student_work/edit.html.erb index c7c572cff..cb8e7edf9 100644 --- a/app/views/student_work/edit.html.erb +++ b/app/views/student_work/edit.html.erb @@ -34,7 +34,11 @@ <% if @homework.homework_type == 3 %> - <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>User.current.id %> + <% str = User.current.id.to_s%> + <% @work.student_work_projects.where("is_leader = ?", 0).each do |pro| %> + <% str += ','+pro.user_id.to_s %> + <% end %> + <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>str %> <% end %>