]> 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 <>
Sat, 11 Sep 2004 14:09:46 +0000 (14:09 +0000)
committerjustdave%bugzilla.org <>
Sat, 11 Sep 2004 14:09:46 +0000 (14:09 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>
r=justdave,tobias, a=justdave

Bugzilla/User.pm

index 21585b3a4a8316972467c0781a3e5f453dfb0a98..5c9b80c072f88a3c8b4ecfa309bb32b05854deee 100644 (file)
@@ -136,7 +136,7 @@ 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}; }
 
@@ -153,8 +153,8 @@ sub get_flag {
     return $self->{'flags'}->{$key};
 }
 
-# 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;