Commit 37ebbc2219477b2d1321f0958f392acb625f6e73

Authored by Antonio Terceiro
1 parent 77d816a3

ActionItem1165: evalutating correctly the e-mail

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/person.rb
... ... @@ -196,7 +196,7 @@ class Person < Profile
196 196  
197 197 def email_addresses
198 198 # TODO for now, only one e-mail address
199   - ['%s@%s' % [self.identifier, self.environment.default_hostname(true) ] ]
  199 + ['%s@%s' % [self.identifier, (self.preferred_domain ? self.preferred_domain.name : self.environment.default_hostname(true)) ] ]
200 200 end
201 201  
202 202 def display_info_to?(user)
... ...