Only show email address in search result if exits.

This commit is contained in:
Martin Edenhofer 2012-04-23 20:49:18 +02:00
parent e74d7541c4
commit d91c5a9304

View file

@ -454,7 +454,7 @@ class TicketOverviewsController < ApplicationController
users = []
user_all.each do |user|
realname = user.firstname.to_s + ' ' + user.lastname.to_s
if user.email
if user.email && user.email.to_s != ''
realname = realname + ' <' + user.email.to_s + '>'
end
a = { :id => user.id, :label => realname, :value => realname }