Only show email address in search result if exits.
This commit is contained in:
parent
e74d7541c4
commit
d91c5a9304
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue