问题跟踪作者下拉列表由登录名改为用户姓名

This commit is contained in:
daiao 2016-09-18 09:38:02 +08:00
parent bac1dc7779
commit 43a3ad1ce8
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@
{:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"w90 mr18"}
)
%>
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]),
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [User.find(c.user_id).show_name, c.user_id]}.unshift(["作者",0]),
{ :include_blank => false,:selected=>@author_id ? @author_id : 0
},
{:onchange=>"remote_function();",:id=>"author_id",:name=>"author_id",:class=>"w90 mr18"}