修改bug《测试版--课程/项目--配置--成员添加:如图,用户列表中各用户的邮箱全部为空了》

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-11-22 09:51:41 +08:00
parent 4e0f4d0a55
commit 0049f921b9
1 changed files with 6 additions and 1 deletions

View File

@ -230,7 +230,12 @@ class User < Principal
#选择项目成员时显示的用户信息文字
def userInfo
info=self.nickname + ' (' + self.realname + ')';
if self.realname.gsub(' ','') == "" || self.realname.nil?
info = self.nickname;
else
info=self.nickname + ' (' + self.realname + ')';
end
info
end
###添加留言 fq