From: justdave%bugzilla.org <> Date: Mon, 13 Sep 2004 07:56:56 +0000 (+0000) Subject: Bug 255913: mailto link on show_bug.cgi wasn't honoring emailsuffix. Bugzilla->user... X-Git-Tag: bugzilla-2.18rc3~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9991a31ed2a20c46200a78c4ecedba2dc3d45796;p=thirdparty%2Fbugzilla.git Bug 255913: mailto link on show_bug.cgi wasn't honoring emailsuffix. Bugzilla->user->email now includes emailsuffix in the result. Patch by Marc Schumann r=justdave,tobias, a=justdave --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index b3d9539457..9883d21686 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -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;