Commit 37ebbc2219477b2d1321f0958f392acb625f6e73
1 parent
77d816a3
Exists in
master
and in
29 other branches
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,7 +196,7 @@ class Person < Profile | ||
196 | 196 | ||
197 | def email_addresses | 197 | def email_addresses |
198 | # TODO for now, only one e-mail address | 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 | end | 200 | end |
201 | 201 | ||
202 | def display_info_to?(user) | 202 | def display_info_to?(user) |