]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 255913: mailto link on show_bug.cgi wasn't honoring emailsuffix. Bugzilla->user...
authorjustdave%bugzilla.org <>
Mon, 13 Sep 2004 07:56:56 +0000 (07:56 +0000)
committerjustdave%bugzilla.org <>
Mon, 13 Sep 2004 07:56:56 +0000 (07:56 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>
r=justdave,tobias, a=justdave

Bugzilla/User.pm

index b3d9539457da6ad40ff0642cf6c9116be8fa40a9..9883d216866ba49fae5c21e06969fd5d07dc35c4 100644 (file)
@@ -124,12 +124,12 @@ sub _create {
 # Accessors for user attributes
 sub id { $_[0]->{id}; }
 sub login { $_[0]->{login}; }
-sub email { $_[0]->{login}; }
+sub email { $_[0]->{login} . Param('emailsuffix'); }
 sub name { $_[0]->{name}; }
 sub showmybugslink { $_[0]->{showmybugslink}; }
 
-# Generate a string to identify the user by name + email if the user
-# has a name or by email only if she doesn't.
+# Generate a string to identify the user by name + login if the user
+# has a name or by login only if she doesn't.
 sub identity {
     my $self = shift;