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 = []
|
users = []
|
||||||
user_all.each do |user|
|
user_all.each do |user|
|
||||||
realname = user.firstname.to_s + ' ' + user.lastname.to_s
|
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 + '>'
|
realname = realname + ' <' + user.email.to_s + '>'
|
||||||
end
|
end
|
||||||
a = { :id => user.id, :label => realname, :value => realname }
|
a = { :id => user.id, :label => realname, :value => realname }
|
||||||
|
|
Loading…
Reference in a new issue